14 lines
386 B
Text
14 lines
386 B
Text
|
==== tests/cases/compiler/inheritanceStaticFuncOverridingAccessorOfFuncType.ts (1 errors) ====
|
||
|
class a {
|
||
|
static get x(): () => string {
|
||
|
~
|
||
|
!!! Accessors are only available when targeting ECMAScript 5 and higher.
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class b extends a {
|
||
|
static x() {
|
||
|
return "20";
|
||
|
}
|
||
|
}
|