@@ -18,8 +18,8 @@ trait Substituters { this: Context =>
18
18
tp
19
19
case tp : RefinedType =>
20
20
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))
23
23
case _ =>
24
24
(if (theMap != null ) theMap else new SubstBindingMap (from, to))
25
25
.mapOver(tp)
@@ -36,8 +36,8 @@ trait Substituters { this: Context =>
36
36
tp
37
37
case tp : RefinedType =>
38
38
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))
41
41
case _ =>
42
42
(if (theMap != null ) theMap else new Subst1Map (from, to))
43
43
.mapOver(tp)
@@ -56,8 +56,8 @@ trait Substituters { this: Context =>
56
56
tp
57
57
case tp : RefinedType =>
58
58
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))
61
61
case _ =>
62
62
(if (theMap != null ) theMap else new Subst2Map (from1, to1, from2, to2))
63
63
.mapOver(tp)
@@ -81,8 +81,8 @@ trait Substituters { this: Context =>
81
81
tp
82
82
case tp : RefinedType =>
83
83
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))
86
86
case _ =>
87
87
(if (theMap != null ) theMap else new SubstMap (from, to))
88
88
.mapOver(tp)
@@ -115,8 +115,8 @@ trait Substituters { this: Context =>
115
115
tp
116
116
case tp : RefinedType =>
117
117
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))
120
120
case _ =>
121
121
(if (theMap != null ) theMap else new SubstDealiasMap (from, to))
122
122
.mapOver(tp)
@@ -154,8 +154,8 @@ trait Substituters { this: Context =>
154
154
tp
155
155
case tp : RefinedType =>
156
156
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))
159
159
case _ =>
160
160
(if (theMap != null ) theMap else new SubstSymMap (from, to))
161
161
.mapOver(tp)
@@ -172,8 +172,8 @@ trait Substituters { this: Context =>
172
172
tp
173
173
case tp : RefinedType =>
174
174
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))
177
177
case _ =>
178
178
(if (theMap != null ) theMap else new SubstThisMap (from, to))
179
179
.mapOver(tp)
@@ -190,8 +190,8 @@ trait Substituters { this: Context =>
190
190
tp
191
191
case tp : RefinedType =>
192
192
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))
195
195
case _ =>
196
196
(if (theMap != null ) theMap else new SubstRefinedThisMap (from, to))
197
197
.mapOver(tp)
@@ -208,8 +208,8 @@ trait Substituters { this: Context =>
208
208
tp
209
209
case tp : RefinedType =>
210
210
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))
213
213
case _ =>
214
214
(if (theMap != null ) theMap else new SubstParamMap (from, to))
215
215
.mapOver(tp)
@@ -226,8 +226,8 @@ trait Substituters { this: Context =>
226
226
tp
227
227
case tp : RefinedType =>
228
228
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))
231
231
case _ =>
232
232
(if (theMap != null ) theMap else new SubstParamsMap (from, to))
233
233
.mapOver(tp)
0 commit comments