VM: no compile error when a getter declaration includes parentheses #5890
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Milestone
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) {}
}
The text was updated successfully, but these errors were encountered: