Skip to content

Commit

Permalink
Move line to where it is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed May 6, 2020
1 parent 35d143f commit c4c1f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Namer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1494,9 +1494,9 @@ class Namer { typer: Typer =>
if (isFullyDefined(tpe, ForceDegree.none)) tpe
else typedAheadExpr(mdef.rhs, tpe).tpe
case TypedSplice(tpt: TypeTree) if !isFullyDefined(tpt.tpe, ForceDegree.none) =>
val rhsType = typedAheadExpr(mdef.rhs, tpt.tpe).tpe
mdef match {
case mdef: DefDef if mdef.name == nme.ANON_FUN =>
val rhsType = typedAheadExpr(mdef.rhs, tpt.tpe).tpe
val hygienicType = avoid(rhsType, paramss.flatten)
if (!hygienicType.isValueType || !(hygienicType <:< tpt.tpe))
ctx.error(i"return type ${tpt.tpe} of lambda cannot be made hygienic;\n" +
Expand Down

0 comments on commit c4c1f65

Please sign in to comment.