Skip to content

Analyzer/CFE discrepancy on for-in loops #60414

@johnniwinther

Description

@johnniwinther

The analyzer and CFE don't agree:

class Foo {}

void method1(List<Foo> list) {
	for (Foo Foo in list) { // Error in CFE, no error in analyzer
	   Foo.toString();
	}
}

@eernstg @lrhn What is the correct response?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.model-discrepancyDiscrepancies between analyzer and cfe

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions