File tree 1 file changed +4
-4
lines changed
src/dotty/tools/dotc/transform
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ class Constructors extends MiniPhaseTransform with SymTransformer { thisTransfor
47
47
private def markUsedPrivateSymbols (tree : RefTree )(implicit ctx : Context ): Unit = {
48
48
49
49
val sym = tree.symbol
50
- def retain =
50
+ def retain () =
51
51
retainedPrivateVals.add(sym)
52
52
53
- if (mightBeDropped( sym) && sym.owner.isClass) {
53
+ if (sym.exists && sym.owner.isClass && mightBeDropped(sym) ) {
54
54
val owner = sym.owner.asClass
55
55
56
56
tree match {
@@ -63,8 +63,8 @@ class Constructors extends MiniPhaseTransform with SymTransformer { thisTransfor
63
63
// used inside constructor, accessed on this,
64
64
// could use constructor argument instead, no need to retain field
65
65
}
66
- else retain
67
- case _ => retain
66
+ else retain()
67
+ case _ => retain()
68
68
}
69
69
}
70
70
}
You can’t perform that action at this time.
0 commit comments