Skip to content

Commit cb736f0

Browse files
committed
Also reduce references with prefixes that alias class types
[Cherry-picked 401f126][modified]
1 parent 07b56cc commit cb736f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@ object Types extends TypeUtils {
26032603
if reduced.exists then reduced
26042604
else prefix.stripTypeVar match
26052605
case pre: (AppliedType | TypeRef)
2606-
if prefix.typeSymbol.isClass && this.symbol.isAliasType => dealias
2606+
if prefix.dealias.typeSymbol.isClass && this.symbol.isAliasType => dealias
26072607
case _ => this
26082608
}
26092609
else this

0 commit comments

Comments
 (0)