mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 12:12:16 +03:00
10 lines
190 B
TypeScript
10 lines
190 B
TypeScript
|
// @target: es5
|
||
|
// @useDefineForClassFields: true
|
||
|
declare class Animal {
|
||
|
get sound(): string
|
||
|
set sound(val: string)
|
||
|
}
|
||
|
class Lion extends Animal {
|
||
|
sound = 'RAWR!' // error here
|
||
|
}
|