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 b3698d0 commit 2ee9994Copy full SHA for 2ee9994
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -2580,7 +2580,7 @@ class Typer extends Namer
2580
readaptSimplified(tree.withType(wtp.resultType))
2581
case wtp: MethodType if wtp.isImplicitMethod &&
2582
({ resMatch = resultMatch; resMatch } || !functionExpected) =>
2583
- if (resMatch || ctx.mode.is(Mode.ImplicitsEnabled)) adaptNoArgsImplicitMethod(wtp)
+ if (resMatch || ctx.mode.is(Mode.ImplicitsEnabled)) adaptNoArgsImplicitMethod(wtp)
2584
else {
2585
// Don't proceed with implicit search if result type cannot match - the search
2586
// will likely be under-constrained, which means that an unbounded number of alternatives
0 commit comments