File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1070,7 +1070,7 @@ class Typer extends Namer
1070
1070
* every parameter in `params`.
1071
1071
*/
1072
1072
lazy val calleeType : Type = untpd.stripAnnotated(fnBody) match {
1073
- case ident : Ident if isContextual =>
1073
+ case ident : untpd. Ident if isContextual =>
1074
1074
val tp = typedIdent(ident, WildcardType ).tpe.widen
1075
1075
if defn.isContextFunctionType(tp) && params.size == defn.functionArity(tp)
1076
1076
then
@@ -2471,7 +2471,7 @@ class Typer extends Namer
2471
2471
val defn .FunctionOf (formals, _, true , _) = pt.dropDependentRefinement
2472
2472
val ifun = desugar.makeContextualFunction(formals.map(_ => untpd.TypeTree ()), tree, defn.isErasedFunctionType(pt))
2473
2473
typr.println(i " make contextual function $tree / $pt ---> $ifun" )
2474
- typedFunctionValue (ifun, pt)
2474
+ typed (ifun, pt)
2475
2475
}
2476
2476
2477
2477
/** Typecheck and adapt tree, returning a typed tree. Parameters as for `typedUnadapted` */
You can’t perform that action at this time.
0 commit comments