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 {
118118
119119 case class Implicit () extends Mod (Flags .ImplicitCommon )
120120
121- case class Unused () extends Mod (Flags .UnusedCommon )
121+ case class Unused () extends Mod (Flags .Unused )
122122
123123 case class Final () extends Mod (Flags .Final )
124124
Original file line number Diff line number Diff line change @@ -368,9 +368,7 @@ object Flags {
368368 final val Enum = commonFlag(40 , " <enum>" )
369369
370370 /** 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" )
374372
375373 // Flags following this one are not pickled
376374
Original file line number Diff line number Diff line change @@ -383,7 +383,6 @@ object Checking {
383383 fail(CannotHaveSameNameAs (sym, cls, CannotHaveSameNameAs .CannotBeOverridden ))
384384 sym.setFlag(Private ) // break the overriding relationship by making sym Private
385385 }
386- checkApplicable(UnusedType , ! sym.is(UnusedType ))
387386 if (sym.is(Unused ))
388387 checkApplicable(Unused , ! sym.is(MutableOrLazy ))
389388 }
You can’t perform that action at this time.
0 commit comments