Skip to content

Commit 15ea692

Browse files
committed
disable implicits
1 parent d00a472 commit 15ea692

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
@@ -4378,7 +4378,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
43784378
(dty ne ty) && ty.isInstanceOf[TypeVar] && dty.isInstanceOf[TypeVar]
43794379
}, StopAt.Static, forceLazy = false)
43804380
&& doesntContainsWildcards then
4381-
constrainResult(tree.symbol, wtp, wildApprox(pt1))
4381+
withoutMode(Mode.ImplicitsEnabled)(constrainResult(tree.symbol, wtp, wildApprox(pt1)))
43824382
val arg = inferImplicitArg(formal, tree.span.endPos)
43834383

43844384
def canProfitFromMoreConstraints =

0 commit comments

Comments
 (0)