TypeScript/tests/cases/compiler/fatarrowfunctionsInFunctions.ts

13 lines
314 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
declare function setTimeout(expression: any, msec?: number, language?: any): number;
var messenger = {
message: "Hello World",
start: function() {
var _self = this;
setTimeout(function() {
_self.message.toString();
}, 3000);
}
};
messenger.start();