File tree 3 files changed +2
-5
lines changed
compiler/src/dotty/tools/dotc
3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
128
128
129
129
case class Implicit () extends Mod (Flags .ImplicitCommon )
130
130
131
- case class Unused () extends Mod (Flags .UnusedCommon )
131
+ case class Unused () extends Mod (Flags .Unused )
132
132
133
133
case class Final () extends Mod (Flags .Final )
134
134
Original file line number Diff line number Diff line change @@ -371,9 +371,7 @@ object Flags {
371
371
final val Enum = commonFlag(40 , " <enum>" )
372
372
373
373
/** Labeled with `unused` modifier (unused value) */
374
- final val UnusedCommon = commonFlag(42 , " unused" )
375
- final val Unused = UnusedCommon .toTermFlags
376
- final val UnusedType = UnusedCommon .toTypeFlags
374
+ final val Unused = termFlag(42 , " unused" )
377
375
378
376
// Flags following this one are not pickled
379
377
Original file line number Diff line number Diff line change @@ -377,7 +377,6 @@ object Checking {
377
377
fail(CannotHaveSameNameAs (sym, cls, CannotHaveSameNameAs .CannotBeOverridden ))
378
378
sym.setFlag(Private ) // break the overriding relationship by making sym Private
379
379
}
380
- checkApplicable(UnusedType , ! sym.is(UnusedType ))
381
380
if (sym.is(Unused ))
382
381
checkApplicable(Unused , ! sym.is(MutableOrLazy ))
383
382
}
You can’t perform that action at this time.
0 commit comments