We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffb6d24 commit 49e03c6Copy full SHA for 49e03c6
src/dotty/tools/dotc/transform/CrossCastAnd.scala
@@ -39,7 +39,7 @@ class CrossCastAnd extends MiniPhaseTransform { thisTransform =>
39
40
val tp = findType(t)
41
if (l eq tp) tree
42
- else tree.qualifier.asInstance(AndType(tp, t)).select(tree.symbol)
+ else tree.qualifier.asInstance(AndType(tp, tree.qualifier.tpe)).select(tree.symbol)
43
case _ => tree
44
}
45
0 commit comments