We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c13a7ce commit 2ada4ccCopy full SHA for 2ada4cc
src/dotty/tools/dotc/transform/SelectStatic.scala
@@ -23,11 +23,11 @@ class SelectStatic extends MiniPhaseTransform with IdentityDenotTransformer { th
23
24
override def transformSelect(tree: tpd.Select)(implicit ctx: Context, info: TransformerInfo): tpd.Tree = {
25
val sym = tree.symbol
26
- if (!sym.is(isPackage) && !sym.owner.is(isPackage) &&
+ if (!sym.is(isPackage) && !sym.maybeOwner.is(isPackage) &&
27
(
28
- ((sym is Flags.Module) && sym.owner.isStaticOwner) ||
+ ((sym is Flags.Module) && sym.maybeOwner.isStaticOwner) ||
29
(sym is Flags.JavaStatic) ||
30
- (sym.owner is Flags.ImplClass) ||
+ (sym.maybeOwner is Flags.ImplClass) ||
31
sym.hasAnnotation(ctx.definitions.ScalaStaticAnnot)
32
)
33
0 commit comments