diff --git a/compiler/src/dotty/tools/dotc/typer/Typer.scala b/compiler/src/dotty/tools/dotc/typer/Typer.scala index 2a9814ba19d5..6a9d179e6b3d 100644 --- a/compiler/src/dotty/tools/dotc/typer/Typer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Typer.scala @@ -2720,7 +2720,7 @@ class Typer extends Namer val ifun = desugar.makeContextualFunction(paramTypes, tree, defn.isErasedFunctionType(pt)) typr.println(i"make contextual function $tree / $pt ---> $ifun") - typed(ifun, pt) + typedFunctionValue(ifun, pt) } /** Typecheck and adapt tree, returning a typed tree. Parameters as for `typedUnadapted` */