[Class modifiers] Report a diagnostic when @reopen
is placed on a class which hasn't reopened anything
#51592
Labels
devexp-warning
Issues with the analyzer's Warning codes
legacy-area-analyzer
Use area-devexp instead.
P2
A bug or feature request we're likely to work on
Milestone
It'd be good to have a diagnostic for no-op
@reopen
annotations. Generally, it would report on any@reopen
annotation which is attached to a class (or mixin?) which does not reopen anything. (@reopen
annotations on things other than classes should already be reported asINVALID_ANNOTATION_TARGET
.)Examples:
CC @pq @bwilkerson
The text was updated successfully, but these errors were encountered: