mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +03:00
9 lines
156 B
TypeScript
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
|
||
|
}
|