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 953fcef commit 63e55a1Copy full SHA for 63e55a1
src/dotty/tools/dotc/transform/CheckStatic.scala
@@ -69,7 +69,7 @@ class CheckStatic extends MiniPhaseTransform { thisTransformer =>
69
} else if (defn.symbol.is(Flags.Lazy)) {
70
ctx.error("Lazy @static fields are not supported", defn.pos)
71
} else if (defn.symbol.allOverriddenSymbols.nonEmpty) {
72
- ctx.error("@static members cannot override or implement non-static ones")
+ ctx.error("@static members cannot override or implement non-static ones", defn.pos)
73
}
74
} else hadNonStaticField = hadNonStaticField || defn.isInstanceOf[ValDef]
75
0 commit comments