Closed
Description
This issue was originally filed by rodion...@unipro.ru
Spec says:
classMemberDenition:
declaration `;' |
methodSignature functionBody
;
methodSignature:
...
static? getterSignature |
...
;
getterSignature:
returnType? get identifier
;
but there's no compile-time error when running co19 test Language/07_Classes/2_Getters_A01_t03:
class C {
get getter() { throw new C(); }
}
main() {
try {
var x = new C().getter;
} on C catch(ok) {}
}