Skip to content

Commit 4d79205

Browse files
committed
Address review
1 parent 74cc1b6 commit 4d79205

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,7 @@ class Typer extends Namer
10721072
lazy val calleeType: Type = untpd.stripAnnotated(fnBody) match {
10731073
case ident: untpd.Ident if isContextual =>
10741074
val tp = typedIdent(ident, WildcardType).tpe.widen
1075-
if defn.isContextFunctionType(tp) && params.size == defn.functionArity(tp)
1076-
then
1075+
if defn.isContextFunctionType(tp) && params.size == defn.functionArity(tp) then
10771076
paramIndex = params.map(_.name).zipWithIndex.toMap
10781077
tp.select(nme.apply)
10791078
else NoType

0 commit comments

Comments
 (0)