Skip to content

Commit 4ed026c

Browse files
authored
Merge pull request #11580 from dotty-staging/fix-checking-contextual
Doing less work in type checking contextual function
2 parents 6c52046 + 5829c18 commit 4ed026c

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)