mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
527 B
TypeScript
21 lines
527 B
TypeScript
//// [tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty4.ts] ////
|
|
|
|
//// [accessorsOverrideProperty4.ts]
|
|
declare class Animal {
|
|
sound: string;
|
|
}
|
|
class Lion extends Animal {
|
|
_sound = 'roar'
|
|
get sound(): string { return this._sound }
|
|
set sound(val: string) { this._sound = val }
|
|
}
|
|
|
|
|
|
//// [accessorsOverrideProperty4.js]
|
|
"use strict";
|
|
class Lion extends Animal {
|
|
_sound = 'roar';
|
|
get sound() { return this._sound; }
|
|
set sound(val) { this._sound = val; }
|
|
}
|