mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
11 lines
240 B
TypeScript
11 lines
240 B
TypeScript
// @target: esnext
|
|
// @useDefineForClassFields: true
|
|
declare class Animal {
|
|
sound: string
|
|
}
|
|
class Lion extends Animal {
|
|
_sound = 'grrr'
|
|
get sound() { return this._sound } // error here
|
|
set sound(val) { this._sound = val }
|
|
}
|