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 4811889 commit d39513eCopy full SHA for d39513e
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -2150,7 +2150,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
2150
case wtp: ExprType =>
2151
adaptInterpolated(tree.withType(wtp.resultType), pt)
2152
case wtp: MethodType
2153
- if wtp.isImplicitMethod && constrainResult(wtp, followAlias(pt)) || !functionExpected =>
+ if wtp.isImplicitMethod && (constrainResult(wtp, followAlias(pt)) || !functionExpected) =>
2154
adaptNoArgsImplicitMethod(wtp)
2155
case wtp: MethodType if !pt.isInstanceOf[SingletonType] =>
2156
val arity =
0 commit comments