Compiler error instead of static warning if a class declares a static setter named v = and also has a non-static member named v. #12351
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
Milestone
This is the analyzer bug of issue #12342:
Dart spec v0.51 7.3 Setters reads:
It is a static warning if a class declares a static setter named v = and also has a non-static member named v.
However, dartVM, dart2js and dartanalyzer all report an error in such a case.
See new co 19 tests Language/07_Classes/3_Setters_A08_*. from r545.
The text was updated successfully, but these errors were encountered: