Skip to content

Commit a1f4cea

Browse files
Keep deepened proto on AmbiguousImplicits even if cannot constrainResult
Might fix #23610 Related to #23664
1 parent 53bea78 commit a1f4cea

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
@@ -4386,7 +4386,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
43864386

43874387
arg.tpe match
43884388
case failed: AmbiguousImplicits =>
4389-
arg :: implicitArgs(formals1, argIndex + 1, pt)
4389+
arg :: implicitArgs(formals1, argIndex + 1, pt.deepenProtoTrans)
43904390
case failed: SearchFailureType =>
43914391
lazy val defaultArg = findDefaultArgument(argIndex)
43924392
.showing(i"default argument: for $formal, $tree, $argIndex = $result", typr)

0 commit comments

Comments
 (0)