File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
118
118
119
119
case class Implicit () extends Mod (Flags .ImplicitCommon )
120
120
121
- case class Unused () extends Mod (Flags .UnusedCommon )
121
+ case class Unused () extends Mod (Flags .Unused )
122
122
123
123
case class Final () extends Mod (Flags .Final )
124
124
Original file line number Diff line number Diff line change @@ -368,9 +368,7 @@ object Flags {
368
368
final val Enum = commonFlag(40 , " <enum>" )
369
369
370
370
/** Labeled with `unused` modifier (unused value) */
371
- final val UnusedCommon = commonFlag(42 , " unused" )
372
- final val Unused = UnusedCommon .toTermFlags
373
- final val UnusedType = UnusedCommon .toTypeFlags
371
+ final val Unused = termFlag(42 , " unused" )
374
372
375
373
// Flags following this one are not pickled
376
374
Original file line number Diff line number Diff line change @@ -383,7 +383,6 @@ object Checking {
383
383
fail(CannotHaveSameNameAs (sym, cls, CannotHaveSameNameAs .CannotBeOverridden ))
384
384
sym.setFlag(Private ) // break the overriding relationship by making sym Private
385
385
}
386
- checkApplicable(UnusedType , ! sym.is(UnusedType ))
387
386
if (sym.is(Unused ))
388
387
checkApplicable(Unused , ! sym.is(MutableOrLazy ))
389
388
}
You can’t perform that action at this time.
0 commit comments