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

26 lines
772 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/inheritanceStaticAccessorOverridingAccessor.ts (4 errors) ====
class a {
static get x() {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
return "20";
}
static set x(aValue: string) {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
}
}
class b extends a {
static get x() {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
return "20";
}
static set x(aValue: string) {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
}
}