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

52 lines
1.4 KiB
Plaintext

==== tests/cases/compiler/noCollisionThisExpressionAndLocalVarInAccessors.ts (4 errors) ====
class class1 {
get a(): number {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
var x2 = {
doStuff: (callback) => () => {
var _this = 2;
return callback(_this);
}
}
return 10;
}
set a(val: number) {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
var x2 = {
doStuff: (callback) => () => {
var _this = 2;
return callback(_this);
}
}
}
}
class class2 {
get a(): number {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
var _this = 2;
var x2 = {
doStuff: (callback) => () => {
return callback(_this);
}
}
return 10;
}
set a(val: number) {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
var _this = 2;
var x2 = {
doStuff: (callback) => () => {
return callback(_this);
}
}
}
}