void_checks
should have tests with assignment patterns
#59082
Labels
devexp-linter
Issues with the analyzer's support for the linter package
legacy-area-analyzer
Use area-devexp instead.
linter-false-negative
linter-new-language-feature
linter-set-core
P1
A high priority bug; for example, a single project is unusable or has many test failures
Milestone
Child issue of #58837
I think there should be a test case like:
in which the lint rule would report that assigning to
p
violatesvoid_checks
.Also maybe something with object patterns? like
class C<T> { T f; }
andcase C<void>(f: var x): print('hi');
...The text was updated successfully, but these errors were encountered: