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