56 lines
No EOL
1.3 KiB
Text
56 lines
No EOL
1.3 KiB
Text
==== 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;
|
|
}
|
|
}
|
|
} |