17 lines
452 B
Plaintext
17 lines
452 B
Plaintext
|
==== tests/cases/compiler/inheritanceMemberAccessorOverridingProperty.ts (2 errors) ====
|
||
|
class a {
|
||
|
x: string;
|
||
|
}
|
||
|
|
||
|
class b extends a {
|
||
|
get x() {
|
||
|
~
|
||
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
||
|
return "20";
|
||
|
}
|
||
|
set x(aValue: string) {
|
||
|
~
|
||
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
||
|
|
||
|
}
|
||
|
}
|