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 @@ -128,7 +128,7 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
128128
129129 case class Implicit () extends Mod (Flags .ImplicitCommon )
130130
131- case class Unused () extends Mod (Flags .UnusedCommon )
131+ case class Unused () extends Mod (Flags .Unused )
132132
133133 case class Final () extends Mod (Flags .Final )
134134
Original file line number Diff line number Diff line change @@ -371,9 +371,7 @@ object Flags {
371371 final val Enum = commonFlag(40 , " <enum>" )
372372
373373 /** 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" )
377375
378376 // Flags following this one are not pickled
379377
Original file line number Diff line number Diff line change @@ -377,7 +377,6 @@ object Checking {
377377 fail(CannotHaveSameNameAs (sym, cls, CannotHaveSameNameAs .CannotBeOverridden ))
378378 sym.setFlag(Private ) // break the overriding relationship by making sym Private
379379 }
380- checkApplicable(UnusedType , ! sym.is(UnusedType ))
381380 if (sym.is(Unused ))
382381 checkApplicable(Unused , ! sym.is(MutableOrLazy ))
383382 }
You can’t perform that action at this time.
0 commit comments