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

9 lines
156 B
TypeScript

// @target: es5
// @useDefineForClassFields: true
abstract class A {
abstract p = 'yep'
}
class B extends A {
get p() { return 'oh no' } // error
}