We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0838b81 commit 0a48b2aCopy full SHA for 0a48b2a
src/dotty/tools/dotc/core/Types.scala
@@ -2884,13 +2884,7 @@ object Types {
2884
tp match {
2885
case tp: NamedType =>
2886
if (stopAtStatic && tp.symbol.isStatic) tp
2887
- else {
2888
- val saved = variance
2889
- variance = 0
2890
- val result = tp.derivedSelect(this(tp.prefix))
2891
- variance = saved
2892
- result
2893
- }
+ else tp.derivedSelect(this(tp.prefix))
2894
2895
case _: ThisType
2896
| _: BoundType
0 commit comments