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