@@ -1952,6 +1952,7 @@ object Types {
1952
1952
case TypeBounds (_, hi) => hi
1953
1953
case st => st
1954
1954
}
1955
+
1955
1956
def superTypeNormalized (using Context ): Type = superType.normalized
1956
1957
1957
1958
/** Same as superType, except for two differences:
@@ -4203,30 +4204,10 @@ object Types {
4203
4204
cachedSuper = tycon match
4204
4205
case tycon : HKTypeLambda => defn.AnyType
4205
4206
case tycon : TypeRef if tycon.symbol.isClass => tycon
4206
- case tycon : TypeProxy =>
4207
- if isMatchAlias then validSuper = Nowhere
4208
- val was = tycon.superType.applyIfParameterized(args)
4209
- if false then
4210
- val now = was.normalized
4211
- if was ne now then
4212
- println(i " norm $was / $now" )
4213
- new Error ().printStackTrace()
4214
- was
4207
+ case tycon : TypeProxy => tycon.superType.applyIfParameterized(args)
4215
4208
case _ => defn.AnyType
4216
4209
cachedSuper
4217
4210
4218
- override def superTypeNormalized (using Context ) =
4219
- if ctx.period != validSuper then
4220
- validSuper = if (tycon.isProvisional) Nowhere else ctx.period
4221
- cachedSuper = tycon match
4222
- case tycon : HKTypeLambda => defn.AnyType
4223
- case tycon : TypeRef if tycon.symbol.isClass => tycon
4224
- case tycon : TypeProxy =>
4225
- if isMatchAlias then validSuper = Nowhere
4226
- tycon.superType.applyIfParameterized(args)
4227
- case _ => defn.AnyType
4228
- cachedSuper.normalized
4229
-
4230
4211
override def translucentSuperType (using Context ): Type = tycon match {
4231
4212
case tycon : TypeRef if tycon.symbol.isOpaqueAlias =>
4232
4213
tycon.translucentSuperType.applyIfParameterized(args)
0 commit comments