Skip to content

Commit 5829c18

Browse files
committed
Doing less work in type checking contextual function
In type checking a contextual function, there is no need to do more adaptation.
1 parent 1dc4894 commit 5829c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2720,7 +2720,7 @@ class Typer extends Namer
27202720

27212721
val ifun = desugar.makeContextualFunction(paramTypes, tree, defn.isErasedFunctionType(pt))
27222722
typr.println(i"make contextual function $tree / $pt ---> $ifun")
2723-
typed(ifun, pt)
2723+
typedFunctionValue(ifun, pt)
27242724
}
27252725

27262726
/** Typecheck and adapt tree, returning a typed tree. Parameters as for `typedUnadapted` */

0 commit comments

Comments
 (0)