@@ -18,8 +18,8 @@ trait Substituters { this: Context =>
1818 tp
1919 case tp : RefinedType =>
2020 tp.derivedRefinedType(subst(tp.parent, from, to, theMap), tp.refinedName, subst(tp.refinedInfo, from, to, theMap))
21- case tp : TypeBounds if tp.lo eq tp.hi =>
22- tp.derivedTypeAlias(subst(tp.lo , from, to, theMap))
21+ case tp : TypeAlias =>
22+ tp.derivedTypeAlias(subst(tp.alias , from, to, theMap))
2323 case _ =>
2424 (if (theMap != null ) theMap else new SubstBindingMap (from, to))
2525 .mapOver(tp)
@@ -36,8 +36,8 @@ trait Substituters { this: Context =>
3636 tp
3737 case tp : RefinedType =>
3838 tp.derivedRefinedType(subst1(tp.parent, from, to, theMap), tp.refinedName, subst1(tp.refinedInfo, from, to, theMap))
39- case tp : TypeBounds if tp.lo eq tp.hi =>
40- tp.derivedTypeAlias(subst1(tp.lo , from, to, theMap))
39+ case tp : TypeAlias =>
40+ tp.derivedTypeAlias(subst1(tp.alias , from, to, theMap))
4141 case _ =>
4242 (if (theMap != null ) theMap else new Subst1Map (from, to))
4343 .mapOver(tp)
@@ -56,8 +56,8 @@ trait Substituters { this: Context =>
5656 tp
5757 case tp : RefinedType =>
5858 tp.derivedRefinedType(subst2(tp.parent, from1, to1, from2, to2, theMap), tp.refinedName, subst2(tp.refinedInfo, from1, to1, from2, to2, theMap))
59- case tp : TypeBounds if tp.lo eq tp.hi =>
60- tp.derivedTypeAlias(subst2(tp.lo , from1, to1, from2, to2, theMap))
59+ case tp : TypeAlias =>
60+ tp.derivedTypeAlias(subst2(tp.alias , from1, to1, from2, to2, theMap))
6161 case _ =>
6262 (if (theMap != null ) theMap else new Subst2Map (from1, to1, from2, to2))
6363 .mapOver(tp)
@@ -81,8 +81,8 @@ trait Substituters { this: Context =>
8181 tp
8282 case tp : RefinedType =>
8383 tp.derivedRefinedType(subst(tp.parent, from, to, theMap), tp.refinedName, subst(tp.refinedInfo, from, to, theMap))
84- case tp : TypeBounds if tp.lo eq tp.hi =>
85- tp.derivedTypeAlias(subst(tp.lo , from, to, theMap))
84+ case tp : TypeAlias =>
85+ tp.derivedTypeAlias(subst(tp.alias , from, to, theMap))
8686 case _ =>
8787 (if (theMap != null ) theMap else new SubstMap (from, to))
8888 .mapOver(tp)
@@ -115,8 +115,8 @@ trait Substituters { this: Context =>
115115 tp
116116 case tp : RefinedType =>
117117 tp.derivedRefinedType(substDealias(tp.parent, from, to, theMap), tp.refinedName, substDealias(tp.refinedInfo, from, to, theMap))
118- case tp : TypeBounds if tp.lo eq tp.hi =>
119- tp.derivedTypeAlias(substDealias(tp.lo , from, to, theMap))
118+ case tp : TypeAlias =>
119+ tp.derivedTypeAlias(substDealias(tp.alias , from, to, theMap))
120120 case _ =>
121121 (if (theMap != null ) theMap else new SubstDealiasMap (from, to))
122122 .mapOver(tp)
@@ -154,8 +154,8 @@ trait Substituters { this: Context =>
154154 tp
155155 case tp : RefinedType =>
156156 tp.derivedRefinedType(substSym(tp.parent, from, to, theMap), tp.refinedName, substSym(tp.refinedInfo, from, to, theMap))
157- case tp : TypeBounds if tp.lo eq tp.hi =>
158- tp.derivedTypeAlias(substSym(tp.lo , from, to, theMap))
157+ case tp : TypeAlias =>
158+ tp.derivedTypeAlias(substSym(tp.alias , from, to, theMap))
159159 case _ =>
160160 (if (theMap != null ) theMap else new SubstSymMap (from, to))
161161 .mapOver(tp)
@@ -172,8 +172,8 @@ trait Substituters { this: Context =>
172172 tp
173173 case tp : RefinedType =>
174174 tp.derivedRefinedType(substThis(tp.parent, from, to, theMap), tp.refinedName, substThis(tp.refinedInfo, from, to, theMap))
175- case tp : TypeBounds if tp.lo eq tp.hi =>
176- tp.derivedTypeAlias(substThis(tp.lo , from, to, theMap))
175+ case tp : TypeAlias =>
176+ tp.derivedTypeAlias(substThis(tp.alias , from, to, theMap))
177177 case _ =>
178178 (if (theMap != null ) theMap else new SubstThisMap (from, to))
179179 .mapOver(tp)
@@ -190,8 +190,8 @@ trait Substituters { this: Context =>
190190 tp
191191 case tp : RefinedType =>
192192 tp.derivedRefinedType(substThis(tp.parent, from, to, theMap), tp.refinedName, substThis(tp.refinedInfo, from, to, theMap))
193- case tp : TypeBounds if tp.lo eq tp.hi =>
194- tp.derivedTypeAlias(substThis(tp.lo , from, to, theMap))
193+ case tp : TypeAlias =>
194+ tp.derivedTypeAlias(substThis(tp.alias , from, to, theMap))
195195 case _ =>
196196 (if (theMap != null ) theMap else new SubstRefinedThisMap (from, to))
197197 .mapOver(tp)
@@ -208,8 +208,8 @@ trait Substituters { this: Context =>
208208 tp
209209 case tp : RefinedType =>
210210 tp.derivedRefinedType(substParam(tp.parent, from, to, theMap), tp.refinedName, substParam(tp.refinedInfo, from, to, theMap))
211- case tp : TypeBounds if tp.lo eq tp.hi =>
212- tp.derivedTypeAlias(substParam(tp.lo , from, to, theMap))
211+ case tp : TypeAlias =>
212+ tp.derivedTypeAlias(substParam(tp.alias , from, to, theMap))
213213 case _ =>
214214 (if (theMap != null ) theMap else new SubstParamMap (from, to))
215215 .mapOver(tp)
@@ -226,8 +226,8 @@ trait Substituters { this: Context =>
226226 tp
227227 case tp : RefinedType =>
228228 tp.derivedRefinedType(substParams(tp.parent, from, to, theMap), tp.refinedName, substParams(tp.refinedInfo, from, to, theMap))
229- case tp : TypeBounds if tp.lo eq tp.hi =>
230- tp.derivedTypeAlias(substParams(tp.lo , from, to, theMap))
229+ case tp : TypeAlias =>
230+ tp.derivedTypeAlias(substParams(tp.alias , from, to, theMap))
231231 case _ =>
232232 (if (theMap != null ) theMap else new SubstParamsMap (from, to))
233233 .mapOver(tp)
0 commit comments