-
Notifications
You must be signed in to change notification settings - Fork 23
Add type_literal_in_constant_pattern
#797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
type_literal_in_constant_pattern
I'd really want this warning to be enabled by default in the analyzer, if at all possible. Otherwise, I'd put it in |
This is approved for the |
so I have a function that basically is this
which is called like and by using the notation suggested by this rule ( How am I supposed to change my code to be adequate to this linter rule? |
It sounds like the rule might need to be changed to not produce a diagnostic if the value being switched over is |
I recently ran into dart-lang/language#2911 and this seems like a good candidate to add to the recommended set. It's probably something users want more often than not.
The text was updated successfully, but these errors were encountered: