2018-03-31 02:43:37 +02:00
|
|
|
// @target: es5
|
2014-07-13 01:04:16 +02:00
|
|
|
class class1 {
|
|
|
|
get a(): number {
|
|
|
|
var x2 = {
|
|
|
|
doStuff: (callback) => () => {
|
|
|
|
var _this = 2;
|
|
|
|
return callback(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 10;
|
|
|
|
}
|
|
|
|
set a(val: number) {
|
|
|
|
var x2 = {
|
|
|
|
doStuff: (callback) => () => {
|
|
|
|
var _this = 2;
|
|
|
|
return callback(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class class2 {
|
|
|
|
get a(): number {
|
|
|
|
var _this = 2;
|
|
|
|
var x2 = {
|
|
|
|
doStuff: (callback) => () => {
|
|
|
|
return callback(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 10;
|
|
|
|
}
|
|
|
|
set a(val: number) {
|
|
|
|
var _this = 2;
|
|
|
|
var x2 = {
|
|
|
|
doStuff: (callback) => () => {
|
|
|
|
return callback(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|