@@ -922,9 +922,9 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
922
922
import untpd .*
923
923
var templ1 = templ
924
924
def isEligible (tp : Type ) =
925
- tp.exists
926
- && ! tp.typeSymbol.is(Final )
927
- && (! tp.isTopType || tp.isAnyRef) // Object is the only toplevel class that can be instantiated
925
+ tp.exists
926
+ && ! tp.typeSymbol.is(Final )
927
+ && (! tp.isTopType || tp.isAnyRef) // Object is the only toplevel class that can be instantiated
928
928
if (templ1.parents.isEmpty &&
929
929
isFullyDefined(pt, ForceDegree .flipBottom) &&
930
930
isSkolemFree(pt) &&
@@ -3002,7 +3002,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
3002
3002
3003
3003
/** Translate infix operation expression `l op r` to
3004
3004
*
3005
- * l.op(r) if `op` is left-associative
3005
+ * l.op(r) if `op` is left-associative
3006
3006
* { val x = l; r.op(x) } if `op` is right-associative call-by-value and `l` is impure, and not in a quote pattern
3007
3007
* r.op(l) if `op` is right-associative call-by-name, or `l` is pure, or in a quote pattern
3008
3008
*
@@ -4377,7 +4377,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
4377
4377
case poly : PolyType
4378
4378
if ! (ctx.mode is Mode .Type ) && dummyTreeOfType.unapply(tree).isEmpty =>
4379
4379
// If we are in a conversion from a TermRef with polymorphic underlying
4380
- // type, give up. In this case the typed `null` literal cannot be instantiated.
4380
+ // type, give up. In this case the typed `null` literal cannot be instantiated.
4381
4381
// Test case was but i18695.scala, but it got fixed by a different tweak in #18719.
4382
4382
// We leave test for this condition in as a defensive measure in case
4383
4383
// it arises somewhere else.
0 commit comments