Skip to content

Commit d39513e

Browse files
committed
Fix implicit MethodType guard
1 parent 4811889 commit d39513e

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
@@ -2150,7 +2150,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
21502150
case wtp: ExprType =>
21512151
adaptInterpolated(tree.withType(wtp.resultType), pt)
21522152
case wtp: MethodType
2153-
if wtp.isImplicitMethod && constrainResult(wtp, followAlias(pt)) || !functionExpected =>
2153+
if wtp.isImplicitMethod && (constrainResult(wtp, followAlias(pt)) || !functionExpected) =>
21542154
adaptNoArgsImplicitMethod(wtp)
21552155
case wtp: MethodType if !pt.isInstanceOf[SingletonType] =>
21562156
val arity =

0 commit comments

Comments
 (0)