We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74cc1b6 commit 4d79205Copy full SHA for 4d79205
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -1072,8 +1072,7 @@ class Typer extends Namer
1072
lazy val calleeType: Type = untpd.stripAnnotated(fnBody) match {
1073
case ident: untpd.Ident if isContextual =>
1074
val tp = typedIdent(ident, WildcardType).tpe.widen
1075
- if defn.isContextFunctionType(tp) && params.size == defn.functionArity(tp)
1076
- then
+ if defn.isContextFunctionType(tp) && params.size == defn.functionArity(tp) then
1077
paramIndex = params.map(_.name).zipWithIndex.toMap
1078
tp.select(nme.apply)
1079
else NoType
0 commit comments