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

14 lines
386 B
Text
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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";
}
}