We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6fbe6f commit 16b33a9Copy full SHA for 16b33a9
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -4643,7 +4643,9 @@ object Types extends TypeUtils {
4643
cachedSuper = tycon match
4644
case tycon: HKTypeLambda => defn.AnyType
4645
case tycon: TypeRef if tycon.symbol.isClass => tycon
4646
- case tycon: TypeProxy => tycon.superType.applyIfParameterized(args)
+ case tycon: TypeProxy =>
4647
+ if validSuper != Nowhere && args.exists(_.isProvisional) then validSuper = Nowhere
4648
+ tycon.superType.applyIfParameterized(args)
4649
case _ => defn.AnyType
4650
cachedSuper
4651
0 commit comments