You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally, @[Deprecated] on an enum member should deprecate just that member, and @[Deprecated] on an enum type should deprecate all of its members, including the implicitly generated None and All. Using Foo or Foo2 itself should also trigger a deprecation warning as part of #11043.
The compiler completely ignores annotations on enum members, but as a side effect of #12044 this is now doable because enum members are somehow represented by Arg nodes.
The text was updated successfully, but these errors were encountered:
#11680 allows
@[Deprecated]
to work on constants. The same isn't true for enums:Ideally,
@[Deprecated]
on an enum member should deprecate just that member, and@[Deprecated]
on an enum type should deprecate all of its members, including the implicitly generatedNone
andAll
. UsingFoo
orFoo2
itself should also trigger a deprecation warning as part of #11043.The compiler completely ignores annotations on enum members, but as a side effect of #12044 this is now doable because enum members are somehow represented by
Arg
nodes.The text was updated successfully, but these errors were encountered: