TypeScript/tests/baselines/reference/thisInModuleFunction1.types
2015-04-13 14:29:37 -07:00

19 lines
598 B
Plaintext

=== tests/cases/compiler/thisInModuleFunction1.ts ===
module bar {
>bar : typeof bar, Symbol(bar, Decl(thisInModuleFunction1.ts, 0, 0))
export function bar() {
>bar : () => any, Symbol(bar, Decl(thisInModuleFunction1.ts, 0, 12))
return this;
>this : any
}
}
var z = bar.bar();
>z : any, Symbol(z, Decl(thisInModuleFunction1.ts, 5, 3))
>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))