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