File tree 3 files changed +7
-2
lines changed
compiler/src/dotty/tools/dotc
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -562,7 +562,7 @@ object SymDenotations {
562
562
563
563
/** Is this denotation static (i.e. with no outer instance)? */
564
564
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) ||
566
566
myFlags.is(JavaStatic )
567
567
568
568
/** 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 {
435
435
newd
436
436
}
437
437
438
+ /** The original denotation of this symbol, without forcing anything */
439
+ final def originDenotation : SymDenotation =
440
+ lastDenot.initial
441
+
438
442
/** The last known denotation of this symbol, without going through `current` */
439
443
final def lastKnownDenotation : SymDenotation =
440
444
lastDenot
Original file line number Diff line number Diff line change 1
- package dotty .tools .dotc
1
+ package dotty .tools
2
+ package dotc
2
3
package printing
3
4
4
5
import core ._
You can’t perform that action at this time.
0 commit comments