@@ -96,11 +96,11 @@ object TypeErasure {
96
96
val arity2 = tupleArity(tp.tp2)
97
97
if arity1 == arity2 then arity1 else math.min(- 1 , math.min(arity1, arity2))
98
98
case tp : WildcardType => - 2
99
- case tp : TypeVar if ! tp.inst.exists => - 2
99
+ case tp : TypeVar if ! tp.isInstantiated => - 2
100
100
case _ =>
101
101
if defn.isTupleNType(tp) then tp.dealias.argInfos.length
102
102
else tp.dealias match
103
- case tp : TypeVar if ! tp.inst.exists => - 2
103
+ case tp : TypeVar if ! tp.isInstantiated => - 2
104
104
case _ => - 1
105
105
106
106
def normalizeClass (cls : ClassSymbol )(using Context ): ClassSymbol = {
@@ -660,8 +660,8 @@ class TypeErasure(sourceLanguage: SourceLanguage, semiEraseVCs: Boolean, isConst
660
660
erasePolyFunctionApply(refinedInfo)
661
661
case RefinedType (parent, nme.apply, refinedInfo : MethodType ) if defn.isErasedFunctionType(parent) =>
662
662
eraseErasedFunctionApply(refinedInfo)
663
- case tp : TypeVar if ! tp.inst.exists =>
664
- assert(inSigName, i " Cannot erase non-permanently instantiated type variable $tp" )
663
+ case tp : TypeVar if ! tp.isInstantiated =>
664
+ assert(inSigName, i " Cannot erase uninstantiated type variable $tp" )
665
665
null
666
666
case tp : TypeProxy =>
667
667
this (tp.underlying)
@@ -945,7 +945,7 @@ class TypeErasure(sourceLanguage: SourceLanguage, semiEraseVCs: Boolean, isConst
945
945
sigName(underlyingOfTermRef(tp))
946
946
case ExprType (rt) =>
947
947
sigName(defn.FunctionOf (Nil , rt))
948
- case tp : TypeVar if ! tp.inst.exists =>
948
+ case tp : TypeVar if ! tp.isInstantiated =>
949
949
tpnme.Uninstantiated
950
950
case tp @ RefinedType (parent, nme.apply, _) if parent.typeSymbol eq defn.PolyFunctionClass =>
951
951
// we need this case rather than falling through to the default
0 commit comments