TypeScript/tests/baselines/reference/thisInModuleFunction1.types

19 lines
580 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/thisInModuleFunction1.ts ===
module bar {
>bar : typeof bar, Symbol(bar,Decl(thisInModuleFunction1.ts,0,0))
2014-08-15 23:33:16 +02:00
export function bar() {
>bar : () => any, Symbol(bar,Decl(thisInModuleFunction1.ts,0,12))
2014-08-15 23:33:16 +02:00
return this;
>this : any
}
}
var z = bar.bar();
>z : any, Symbol(z,Decl(thisInModuleFunction1.ts,5,3))
2014-08-15 23:33:16 +02:00
>bar.bar() : any
>bar.bar : () => any, Symbol(bar.bar,Decl(thisInModuleFunction1.ts,0,12))
>bar : typeof bar, Symbol(bar,Decl(thisInModuleFunction1.ts,0,0))
>bar : () => any, Symbol(bar.bar,Decl(thisInModuleFunction1.ts,0,12))
2014-08-15 23:33:16 +02:00