Skip to content

Commit c794eab

Browse files
Normalize types in liftToAnchors instead of in collectParts
Fixes scala#20136 Co-authored-by: Guillaume Martres <[email protected]>
1 parent d421f88 commit c794eab

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
@@ -636,7 +636,7 @@ trait ImplicitRunInfo:
636636
else if implicitScopeCache.contains(t) then parts += t
637637
else
638638
partSeen += t
639-
t.dealias.normalized match
639+
t.dealias match
640640
case t: TypeRef =>
641641
if isAnchor(t.symbol) then
642642
parts += t
@@ -817,7 +817,7 @@ trait ImplicitRunInfo:
817817
else AndType.make(apply(lo), apply(hi))
818818
case u => apply(u)
819819

820-
def apply(t: Type) = t.dealias match
820+
def apply(t: Type) = t.dealias.normalized match
821821
case t: TypeRef =>
822822
if t.symbol.isClass || isAnchor(t.symbol) then t else applyToUnderlying(t)
823823
case t: TypeVar => apply(t.underlying)

0 commit comments

Comments
 (0)