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 78e8ac1 commit 7aeb0fdCopy full SHA for 7aeb0fd
compiler/src/dotty/tools/dotc/typer/Checking.scala
@@ -457,8 +457,7 @@ object Checking {
457
sym.setFlag(Private) // break the overriding relationship by making sym Private
458
}
459
if (sym.is(Erased))
460
- if ctx.settings.YerasedTerms.value || sym == defn.Compiletime_erasedValue then checkApplicable(Erased, !sym.isOneOf(MutableOrLazy))
461
- else fail("cannot use `erased` without " + ctx.settings.YerasedTerms.name)
+ checkApplicable(Erased, !sym.isOneOf(MutableOrLazy))
462
463
464
/** Check the type signature of the symbol `M` defined by `tree` does not refer
0 commit comments