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 92e13fe commit 8fcbd0aCopy full SHA for 8fcbd0a
src/dotty/tools/dotc/transform/SelectStatic.scala
@@ -32,7 +32,7 @@ class SelectStatic extends MiniPhaseTransform with IdentityDenotTransformer { th
32
sym.hasAnnotation(ctx.definitions.ScalaStaticAnnot)
33
)
34
35
- if (!tree.qualifier.symbol.is(JavaModule))
+ if (!tree.qualifier.symbol.is(JavaModule) && !tree.qualifier.isType)
36
Block(List(tree.qualifier), ref(sym))
37
else tree
38
0 commit comments