-
Notifications
You must be signed in to change notification settings - Fork 170
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
Questions on null_check_on_nullable_type_parameter #3256
Comments
CC @leafpetersen who filed the initial lint rule request CC @a14n who implemented the lint rule CC @goderbauer in case this affects the decision to add this to lints/recommended.yaml as per dart-lang/lints#64 |
I expected the same. Those cases were just forgotten during the implementation. I guess the following method should be extended to cover those cases. linter/lib/src/rules/unnecessary_null_checks.dart Lines 39 to 83 in 8c01f68
|
I was looking at test cases in order to implement a quick fix for
null_check_on_nullable_type_parameter
but came across some test cases that surprised me.Future<T>
/await p!
:This case does not generate a lint report, but I expected it would.
List<T>
/[p!]
:This case also does not generate a lint report, but I expected it would.
Stream<T>
/yield p!
:This case also does not generate a lint report, but I expected it would.
The text was updated successfully, but these errors were encountered: