Skip to content

Commit 401f126

Browse files
committed
Also reduce references with prefixes that alias class types
1 parent 291e84f commit 401f126

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
@@ -2721,7 +2721,7 @@ object Types extends TypeUtils {
27212721
if reduced.exists then reduced
27222722
else prefix.stripTypeVar match
27232723
case pre: (AppliedType | TypeRef)
2724-
if prefix.typeSymbol.isClass && this.symbol.isAliasType => dealias
2724+
if prefix.dealias.typeSymbol.isClass && this.symbol.isAliasType => dealias
27252725
case _ => this
27262726

27272727
/** Guard against cycles that can arise if given `op`

0 commit comments

Comments
 (0)