2017-03-01 01:09:42 +01:00
|
|
|
// @noImplicitAny: true
|
|
|
|
// @noImplicitThis: true
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
class C {
|
|
|
|
x: number;
|
|
|
|
constructor() {
|
|
|
|
this.x = (() => {
|
|
|
|
var x = 1;
|
|
|
|
return this.x;
|
|
|
|
})();
|
|
|
|
this.x = function() {
|
|
|
|
var x = 1;
|
|
|
|
return this.x;
|
|
|
|
}();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
declare function setTimeout(expression: any, msec?: number, language?: any): number;
|
|
|
|
var messenger = {
|
|
|
|
message: "Hello World",
|
|
|
|
start: function () {
|
|
|
|
return setTimeout(() => { var x = this.message; }, 3000);
|
|
|
|
}
|
|
|
|
};
|