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

56 lines
1.3 KiB
Plaintext

==== tests/cases/compiler/collisionCodeGenModuleWithAccessorChildren.ts (5 errors) ====
module M {
export var x = 3;
class c {
private y;
set Z(M) {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
this.y = x;
}
}
}
module M {
class d {
private y;
set Z(p) {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
var M = 10;
this.y = x;
}
}
}
module M { // Shouldnt be _M
class e {
private y;
set M(p) {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
this.y = x;
}
}
}
module M {
class f {
get Z() {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
var M = 10;
return x;
}
}
}
module M { // Shouldnt be _M
class e {
get M() {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
return x;
}
}
}