Skip to content

Commit

Permalink
Also reduce references with prefixes that alias class types
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Mar 27, 2024
1 parent 291e84f commit 401f126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/core/Types.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2721,7 +2721,7 @@ object Types extends TypeUtils {
if reduced.exists then reduced
else prefix.stripTypeVar match
case pre: (AppliedType | TypeRef)
if prefix.typeSymbol.isClass && this.symbol.isAliasType => dealias
if prefix.dealias.typeSymbol.isClass && this.symbol.isAliasType => dealias
case _ => this

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

0 comments on commit 401f126

Please sign in to comment.