mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +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
|
|
}
|