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 c8eb6cd commit c950006Copy full SHA for c950006
compiler/src/dotty/tools/dotc/typer/RefChecks.scala
@@ -989,7 +989,7 @@ object RefChecks {
989
checker.traverse(tpe)
990
991
private def checkExperimentalAnnots(sym: Symbol)(using Context): Unit =
992
- for annot <- sym.annotations if annot.symbol.isExperimental do
+ for annot <- sym.annotations if annot.symbol.isExperimental && annot.tree.span.exists do
993
Feature.checkExperimentalDef(annot.symbol, annot.tree)
994
995
/** If @migration is present (indicating that the symbol has changed semantics between versions),
tests/neg-custom-args/no-experimental/experimentalEnum.scala
@@ -1,4 +1,3 @@
1
-// nopos-error // nopos-error // nopos-error // FIXME redundant due to enum
2
import scala.annotation.experimental
3
4
@experimental // error
0 commit comments