File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -562,7 +562,7 @@ object SymDenotations {
562562
563563 /** Is this denotation static (i.e. with no outer instance)? */
564564 final def isStatic (implicit ctx : Context ) =
565- (if (maybeOwner eq NoSymbol ) isRoot else maybeOwner.isStaticOwner) ||
565+ (if (maybeOwner eq NoSymbol ) isRoot else maybeOwner.originDenotation. isStaticOwner) ||
566566 myFlags.is(JavaStatic )
567567
568568 /** Is this a package class or module class that defines static symbols? */
Original file line number Diff line number Diff line change @@ -435,6 +435,10 @@ object Symbols {
435435 newd
436436 }
437437
438+ /** The original denotation of this symbol, without forcing anything */
439+ final def originDenotation : SymDenotation =
440+ lastDenot.initial
441+
438442 /** The last known denotation of this symbol, without going through `current` */
439443 final def lastKnownDenotation : SymDenotation =
440444 lastDenot
Original file line number Diff line number Diff line change 1- package dotty .tools .dotc
1+ package dotty .tools
2+ package dotc
23package printing
34
45import core ._
You can’t perform that action at this time.
0 commit comments