Skip to content

join_return_with_assignment tests should include assignment patterns #59074

Closed
@srawlins

Description

@srawlins

Child issue of #58837

I think there should be test cases like:

var (a, b) = record; // variable declaration
return a;

// also
(a, b) = record; // just an assignment
return a;

in which the lint rule would not report that the return should be joined with the assignment.

(There are also no test cases with multiple assignment expressions in one statement, like

  • a = b = 7; return b; or
  • var a = 8, b = 9; return b;

)

Metadata

Metadata

Assignees

Labels

devexp-linterIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions