mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
//// [tests/cases/compiler/fatarrowfunctionsInFunctions.ts] ////
|
|
|
|
=== fatarrowfunctionsInFunctions.ts ===
|
|
declare function setTimeout(expression: any, msec?: number, language?: any): number;
|
|
>setTimeout : Symbol(setTimeout, Decl(lib.dom.d.ts, --, --), Decl(fatarrowfunctionsInFunctions.ts, 0, 0))
|
|
>expression : Symbol(expression, Decl(fatarrowfunctionsInFunctions.ts, 0, 28))
|
|
>msec : Symbol(msec, Decl(fatarrowfunctionsInFunctions.ts, 0, 44))
|
|
>language : Symbol(language, Decl(fatarrowfunctionsInFunctions.ts, 0, 59))
|
|
|
|
var messenger = {
|
|
>messenger : Symbol(messenger, Decl(fatarrowfunctionsInFunctions.ts, 2, 3))
|
|
|
|
message: "Hello World",
|
|
>message : Symbol(message, Decl(fatarrowfunctionsInFunctions.ts, 2, 17))
|
|
|
|
start: function() {
|
|
>start : Symbol(start, Decl(fatarrowfunctionsInFunctions.ts, 3, 27))
|
|
|
|
var _self = this;
|
|
>_self : Symbol(_self, Decl(fatarrowfunctionsInFunctions.ts, 5, 11))
|
|
|
|
setTimeout(function() {
|
|
>setTimeout : Symbol(setTimeout, Decl(lib.dom.d.ts, --, --), Decl(fatarrowfunctionsInFunctions.ts, 0, 0))
|
|
|
|
_self.message.toString();
|
|
>_self : Symbol(_self, Decl(fatarrowfunctionsInFunctions.ts, 5, 11))
|
|
|
|
}, 3000);
|
|
}
|
|
};
|
|
messenger.start();
|
|
>messenger.start : Symbol(start, Decl(fatarrowfunctionsInFunctions.ts, 3, 27))
|
|
>messenger : Symbol(messenger, Decl(fatarrowfunctionsInFunctions.ts, 2, 3))
|
|
>start : Symbol(start, Decl(fatarrowfunctionsInFunctions.ts, 3, 27))
|
|
|