Skip to content

Commit 9acf39d

Browse files
committed
Implement reviewer suggestion
1 parent 938cf52 commit 9acf39d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ object Implicits {
182182
tp.derivedLambdaType(paramInfos = tp.paramInfos.mapConserve(widenSingleton))
183183
case _ =>
184184
tp.baseType(defn.ConversionClass) match
185-
case app @ AppliedType(tycon, from :: to :: Nil) =>
185+
case app @ AppliedType(tycon, from :: rest) =>
186186
val wideFrom = from.widenSingleton
187-
if wideFrom ne from then app.derivedAppliedType(tycon, wideFrom :: to :: Nil)
187+
if wideFrom ne from then app.derivedAppliedType(tycon, wideFrom :: rest)
188188
else tp
189189
case _ => tp
190190

0 commit comments

Comments
 (0)