2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/thisInModuleFunction1.ts ===
|
|
|
|
module bar {
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar : typeof bar, Symbol(bar, Decl(thisInModuleFunction1.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export function bar() {
|
2015-04-13 23:01:57 +02:00
|
|
|
>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();
|
2015-04-13 23:01:57 +02:00
|
|
|
>z : any, Symbol(z, Decl(thisInModuleFunction1.ts, 5, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>bar.bar() : any
|
2015-04-13 23:01:57 +02:00
|
|
|
>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
|
|
|
|