File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ class Constructors extends MiniPhase with IdentityDenotTransformer { thisPhase =
149149 case Ident (_) | Select (This (_), _) =>
150150 var sym = tree.symbol
151151 if (sym.is(ParamAccessor , butNot = Mutable )) sym = sym.subst(accessors, paramSyms)
152- if (sym.owner .isConstructor) ref(sym).withSpan(tree.span) else tree
152+ if (sym.maybeOwner .isConstructor) ref(sym).withSpan(tree.span) else tree
153153 case Apply (fn, Nil ) =>
154154 val fn1 = transform(fn)
155155 if ((fn1 ne fn) && fn1.symbol.is(Param ) && fn1.symbol.owner.isPrimaryConstructor)
Original file line number Diff line number Diff line change 1+ class Foo :
2+ private var foo1 : Int = _
3+ private var foo2 : Array [Int ] = _
4+ private [this ] var foo3 : Array [Int ] = _
5+ private var foo4 : Array [Object ] = _
6+ private var foo5 : Array [Array [Int ]] = _
7+ private var foo6 : List [Int ] = _
You can’t perform that action at this time.
0 commit comments