Skip to content

Commit 6a40b84

Browse files
committed
Keep stable unused arguments
1 parent dd661dd commit 6a40b84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2135,7 +2135,8 @@ class Typer extends Namer
21352135
if (!wtp.isUnusedMethod) args
21362136
else args.map { arg =>
21372137
arg.tpe match {
2138-
case _: AmbiguousImplicits | _: SearchFailureType => arg
2138+
case tpe if tpe.isStable => arg
2139+
case _: AmbiguousImplicits => arg
21392140
case tpe => defaultValue(tpe)
21402141
}
21412142
}

0 commit comments

Comments
 (0)