Files
oxc-project__oxc/tasks/coverage/misc/fail/oxc-14013.ts
Ulrich Stark 81a28d4bff fix(parser): forbid abstract class members with implementation in parser instead of semantic (#14325)
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) {
    
  }
}
```
2025-10-05 09:11:58 +08:00

13 lines
162 B
TypeScript

abstract class Foo {
abstract prop = 3;
abstract method() { }
abstract get getter() {
return 1;
}
abstract set setter(value: number) {
}
}