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

18 lines
530 B
Plaintext

==== tests/cases/compiler/inheritanceMemberPropertyOverridingAccessor.ts (2 errors) ====
class a {
private __x: () => string;
get x() {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
return this.__x;
}
set x(aValue: () => string) {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
this.__x = aValue;
}
}
class b extends a {
x: () => string;
}