TypeScript/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.errors.txt
2014-07-12 17:30:19 -07:00

14 lines
386 B
Plaintext

==== 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";
}
}