Compiler error instead of static warning if a class declares a static setter named v = and also has a non-static member named v. #12350
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
This is the dart2js 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: