Spec allows static getters and setters in interfaces #679
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-not-planned
Closed as we don't intend to take action on the reported issue
Milestone
This issue was originally filed by [email protected]
8 Interfaces
interfaceMemberDefinition:
...
getterSignature ‘;’ |
setterSignature ‘;’ |
...
getterSignature:
static? returnType? get identifier formalParameterList;
setterSignature:
static? returnType? set identifier formalParameterList;
That is, static getters and setters are allowed in interfaces.
On the other hand, both dartc and dart issue compiler error when static getters or setters encountered, which looks reasonable. Either spec or implementation needs to be fixed.
The text was updated successfully, but these errors were encountered: