Skip to content

Commit ff1ae38

Browse files
committed
Fix bootstrapped warning
1 parent 491a244 commit ff1ae38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ class Typer extends Namer
10701070
* every parameter in `params`.
10711071
*/
10721072
lazy val calleeType: Type = untpd.stripAnnotated(fnBody) match {
1073-
case ident: Ident if isContextual =>
1073+
case ident: untpd.Ident if isContextual =>
10741074
val tp = typedIdent(ident, WildcardType).tpe.widen
10751075
if defn.isContextFunctionType(tp) && params.size == defn.functionArity(tp)
10761076
then
@@ -2471,7 +2471,7 @@ class Typer extends Namer
24712471
val defn.FunctionOf(formals, _, true, _) = pt.dropDependentRefinement
24722472
val ifun = desugar.makeContextualFunction(formals.map(_ => untpd.TypeTree()), tree, defn.isErasedFunctionType(pt))
24732473
typr.println(i"make contextual function $tree / $pt ---> $ifun")
2474-
typedFunctionValue(ifun, pt)
2474+
typed(ifun, pt)
24752475
}
24762476

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

0 commit comments

Comments
 (0)