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 859a81b commit 5cad4c2Copy full SHA for 5cad4c2
compiler/src/dotty/tools/dotc/typer/RefChecks.scala
@@ -963,7 +963,7 @@ object RefChecks {
963
964
private def checkExperimentalAnnots(sym: Symbol)(using Context): Unit =
965
if !sym.isExperimental then
966
- for annot <- sym.annotations if annot.symbol.isExperimental && annot.tree.span.exists do
+ for annot <- sym.annotations if annot.symbol.isExperimental do
967
Feature.checkExperimentalDef(annot.symbol, annot.tree)
968
969
/** If @migration is present (indicating that the symbol has changed semantics between versions),
0 commit comments