Skip to content

void_checks should have tests with assignment patternsย #59082

Closed
dart-archive/linter
#4191
@srawlins

Description

@srawlins

Child issue of #58837

I think there should be a test case like:

void f(void p) {
  (p, ) = (7, );
}

in which the lint rule would report that assigning to p violates void_checks.

Also maybe something with object patterns? like class C<T> { T f; } and case C<void>(f: var x): print('hi');...

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failuresdevexp-linterIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.linter-false-negativeIssues related to lint rules that fail to report a problem.linter-new-language-featurelinter-set-core

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions