TypeScript/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.errors.txt

17 lines
569 B
Plaintext
Raw Normal View History

tests/cases/compiler/inheritanceStaticFuncOverridingAccessorOfFuncType.ts(2,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/inheritanceStaticFuncOverridingAccessorOfFuncType.ts (1 errors) ====
class a {
static get x(): () => string {
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
2014-07-13 01:04:16 +02:00
return null;
}
}
class b extends a {
static x() {
return "20";
}
}