Skip to content

Commit 2ee9994

Browse files
smarterodersky
andauthored
Update compiler/src/dotty/tools/dotc/typer/Typer.scala
Co-Authored-By: odersky <[email protected]>
1 parent b3698d0 commit 2ee9994

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
@@ -2580,7 +2580,7 @@ class Typer extends Namer
25802580
readaptSimplified(tree.withType(wtp.resultType))
25812581
case wtp: MethodType if wtp.isImplicitMethod &&
25822582
({ resMatch = resultMatch; resMatch } || !functionExpected) =>
2583-
if (resMatch || ctx.mode.is(Mode.ImplicitsEnabled)) adaptNoArgsImplicitMethod(wtp)
2583+
if (resMatch || ctx.mode.is(Mode.ImplicitsEnabled)) adaptNoArgsImplicitMethod(wtp)
25842584
else {
25852585
// Don't proceed with implicit search if result type cannot match - the search
25862586
// will likely be under-constrained, which means that an unbounded number of alternatives

0 commit comments

Comments
 (0)