2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/fatarrowfunctionsInFunctions.ts ===
|
|
|
|
declare function setTimeout(expression: any, msec?: number, language?: any): number;
|
2015-04-13 23:01:57 +02:00
|
|
|
>setTimeout : (expression: any, msec?: number, language?: any) => number, Symbol(setTimeout, Decl(fatarrowfunctionsInFunctions.ts, 0, 0))
|
|
|
|
>expression : any, Symbol(expression, Decl(fatarrowfunctionsInFunctions.ts, 0, 28))
|
|
|
|
>msec : number, Symbol(msec, Decl(fatarrowfunctionsInFunctions.ts, 0, 44))
|
|
|
|
>language : any, Symbol(language, Decl(fatarrowfunctionsInFunctions.ts, 0, 59))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var messenger = {
|
2015-04-13 23:01:57 +02:00
|
|
|
>messenger : { message: string; start: () => void; }, Symbol(messenger, Decl(fatarrowfunctionsInFunctions.ts, 2, 3))
|
2014-08-22 03:39:46 +02:00
|
|
|
>{ message: "Hello World", start: function() { var _self = this; setTimeout(function() { _self.message.toString(); }, 3000); }} : { message: string; start: () => void; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
message: "Hello World",
|
2015-04-13 23:01:57 +02:00
|
|
|
>message : string, Symbol(message, Decl(fatarrowfunctionsInFunctions.ts, 2, 17))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"Hello World" : string
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
start: function() {
|
2015-04-13 23:01:57 +02:00
|
|
|
>start : () => void, Symbol(start, Decl(fatarrowfunctionsInFunctions.ts, 3, 27))
|
2014-08-22 03:39:46 +02:00
|
|
|
>function() { var _self = this; setTimeout(function() { _self.message.toString(); }, 3000); } : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var _self = this;
|
2015-04-13 23:01:57 +02:00
|
|
|
>_self : any, Symbol(_self, Decl(fatarrowfunctionsInFunctions.ts, 5, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
>this : any
|
|
|
|
|
|
|
|
setTimeout(function() {
|
2014-08-22 03:39:46 +02:00
|
|
|
>setTimeout(function() { _self.message.toString(); }, 3000) : number
|
2015-04-13 23:01:57 +02:00
|
|
|
>setTimeout : (expression: any, msec?: number, language?: any) => number, Symbol(setTimeout, Decl(fatarrowfunctionsInFunctions.ts, 0, 0))
|
2014-08-22 03:39:46 +02:00
|
|
|
>function() { _self.message.toString(); } : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
_self.message.toString();
|
|
|
|
>_self.message.toString() : any
|
|
|
|
>_self.message.toString : any
|
|
|
|
>_self.message : any
|
2015-04-13 23:01:57 +02:00
|
|
|
>_self : any, Symbol(_self, Decl(fatarrowfunctionsInFunctions.ts, 5, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
>message : any
|
|
|
|
>toString : any
|
|
|
|
|
|
|
|
}, 3000);
|
2015-04-13 21:36:11 +02:00
|
|
|
>3000 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
messenger.start();
|
|
|
|
>messenger.start() : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>messenger.start : () => void, Symbol(start, Decl(fatarrowfunctionsInFunctions.ts, 3, 27))
|
|
|
|
>messenger : { message: string; start: () => void; }, Symbol(messenger, Decl(fatarrowfunctionsInFunctions.ts, 2, 3))
|
|
|
|
>start : () => void, Symbol(start, Decl(fatarrowfunctionsInFunctions.ts, 3, 27))
|
2014-08-15 23:33:16 +02:00
|
|
|
|