File tree 1 file changed +2
-6
lines changed
src/dotty/tools/dotc/typer
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -116,15 +116,11 @@ object Checking {
116
116
val saved = cycleOK
117
117
cycleOK = nestedCycleOK
118
118
119
- /** A derived refined type with two possible tweaks:
120
- * (1) LazyRefs in parents are pulled out,
121
- * (2) #Apply is added if the type is a fully applied type lambda.
119
+ /** A derived refined type but where LazyRefs in parents are pulled out,
122
120
*/
123
121
def derivedType (p : Type ): Type = p match {
124
122
case p : LazyRef => LazyRef (() => derivedType(p.ref))
125
- case _ =>
126
- val res = tp.derivedRefinedType(p, name, this (tp.refinedInfo))
127
- if (res.isSafeLambda && res.typeParams.isEmpty) res.select(tpnme.Apply ) else res
123
+ case _ => tp.derivedRefinedType(p, name, this (tp.refinedInfo))
128
124
}
129
125
try derivedType(parent1) finally cycleOK = saved
130
126
case tp @ TypeRef (pre, name) =>
You can’t perform that action at this time.
0 commit comments