Skip to content

Commit dd9210b

Browse files
committed
Add mayChange to FirstTransform
1 parent 69a98aa commit dd9210b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/dotty/tools/dotc/transform/FirstTransform.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ class FirstTransform extends MiniPhase with InfoTransformer { thisPhase =>
6161
tp
6262
}
6363

64+
override protected def mayChange(sym: Symbol)(implicit ctx: Context): Boolean = sym.isClass
65+
6466
override def checkPostCondition(tree: Tree)(implicit ctx: Context): Unit = {
6567
tree match {
6668
case Select(qual, name) if !name.is(OuterSelectName) && tree.symbol.exists =>

0 commit comments

Comments
 (0)