Skip to content

Commit 5cad4c2

Browse files
committed
Remove unnecessary condition
1 parent 859a81b commit 5cad4c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/RefChecks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ object RefChecks {
963963

964964
private def checkExperimentalAnnots(sym: Symbol)(using Context): Unit =
965965
if !sym.isExperimental then
966-
for annot <- sym.annotations if annot.symbol.isExperimental && annot.tree.span.exists do
966+
for annot <- sym.annotations if annot.symbol.isExperimental do
967967
Feature.checkExperimentalDef(annot.symbol, annot.tree)
968968

969969
/** If @migration is present (indicating that the symbol has changed semantics between versions),

0 commit comments

Comments
 (0)