TypeScript/tests/baselines/reference/thisInModuleFunction1.types

19 lines
283 B
Plaintext
Raw Normal View History

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