Compiler error instead of static warning if a class declares a static setter named v = and also has a non-static member named v. #12342
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
This issue was originally filed by alexe.kaigorodov@gmail.com
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: