Skip to content

Commit ea4d619

Browse files
committed
Move line to where it is needed
1 parent c79d5f8 commit ea4d619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Namer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,9 +1494,9 @@ class Namer { typer: Typer =>
14941494
if (isFullyDefined(tpe, ForceDegree.none)) tpe
14951495
else typedAheadExpr(mdef.rhs, tpe).tpe
14961496
case TypedSplice(tpt: TypeTree) if !isFullyDefined(tpt.tpe, ForceDegree.none) =>
1497-
val rhsType = typedAheadExpr(mdef.rhs, tpt.tpe).tpe
14981497
mdef match {
14991498
case mdef: DefDef if mdef.name == nme.ANON_FUN =>
1499+
val rhsType = typedAheadExpr(mdef.rhs, tpt.tpe).tpe
15001500
val hygienicType = avoid(rhsType, paramss.flatten)
15011501
if (!hygienicType.isValueType || !(hygienicType <:< tpt.tpe))
15021502
ctx.error(i"return type ${tpt.tpe} of lambda cannot be made hygienic;\n" +

0 commit comments

Comments
 (0)