swc/crates/swc_ecma_parser/tests/tsc/classAbstractAccessor.ts

9 lines
175 B
TypeScript
Raw Normal View History

// @target: es5
abstract class A {
abstract get a();
abstract get aa() { return 1; } // error
abstract set b(x: string);
abstract set bb(x: string) {} // error
}