mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
81a28d4bff
The following four cases are now errors in parser instead of semantic errors. [TS Playground](https://www.typescriptlang.org/play/?#code/IYIwzgLgTsDGEAJYBthjAgYge2wg3gFAIKiQzwIAOU2VCAvAgMwDchxp40ciAtgFMIAC2wATABQBKAggC+HEmR6UA5kITqIEAVGkFOJKEICuUAHYIAjOxILOyiojAaX23RIBuwZCYEAuBHMTPhBdGSISEk4FOSA) for reference. Closes #14013 ```typescript abstract class Foo { abstract prop = 3; abstract method() { } abstract get getter() { return 1; } abstract set setter(value: number) { } } ```
13 lines
162 B
TypeScript
13 lines
162 B
TypeScript
abstract class Foo {
|
|
abstract prop = 3;
|
|
|
|
abstract method() { }
|
|
|
|
abstract get getter() {
|
|
return 1;
|
|
}
|
|
|
|
abstract set setter(value: number) {
|
|
|
|
}
|
|
} |