26 lines
828 B
Plaintext
26 lines
828 B
Plaintext
==== tests/cases/compiler/inheritanceStaticAccessorOverridingAccessor.ts (4 errors) ====
|
|
class a {
|
|
static get x() {
|
|
~
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
return "20";
|
|
}
|
|
static set x(aValue: string) {
|
|
~
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
}
|
|
}
|
|
|
|
class b extends a {
|
|
static get x() {
|
|
~
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
return "20";
|
|
}
|
|
static set x(aValue: string) {
|
|
~
|
|
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
|
|
|
|
}
|
|
} |