Skip to content

Analyzer erroneously allows .call= on type FunctionΒ #57003

@stereotype441

Description

@stereotype441

The analyzer accepts the following code, but the CFE rejects it:

test(Function f) {
  f.call = 0;
}

The CFE is correct in rejecting the code; there is no .call= setter defined for the type Function.

Metadata

Metadata

Assignees

Labels

P3A lower priority bug or feature requestarea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions