2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/functionMergedWithModule.ts ===
|
|
|
|
function foo(title: string) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : typeof foo, Symbol(foo, Decl(functionMergedWithModule.ts, 0, 0), Decl(functionMergedWithModule.ts, 2, 1), Decl(functionMergedWithModule.ts, 7, 1))
|
|
|
|
>title : string, Symbol(title, Decl(functionMergedWithModule.ts, 0, 13))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var x = 10;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(functionMergedWithModule.ts, 1, 7))
|
2015-04-13 21:36:11 +02:00
|
|
|
>10 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module foo.Bar {
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : typeof foo, Symbol(foo, Decl(functionMergedWithModule.ts, 0, 0), Decl(functionMergedWithModule.ts, 2, 1), Decl(functionMergedWithModule.ts, 7, 1))
|
|
|
|
>Bar : typeof Bar, Symbol(Bar, Decl(functionMergedWithModule.ts, 4, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export function f() {
|
2015-04-13 23:01:57 +02:00
|
|
|
>f : () => void, Symbol(f, Decl(functionMergedWithModule.ts, 4, 16))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module foo.Baz {
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : typeof foo, Symbol(foo, Decl(functionMergedWithModule.ts, 0, 0), Decl(functionMergedWithModule.ts, 2, 1), Decl(functionMergedWithModule.ts, 7, 1))
|
|
|
|
>Baz : typeof Baz, Symbol(Baz, Decl(functionMergedWithModule.ts, 9, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export function g() {
|
2015-04-13 23:01:57 +02:00
|
|
|
>g : () => void, Symbol(g, Decl(functionMergedWithModule.ts, 9, 16))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
Bar.f();
|
|
|
|
>Bar.f() : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>Bar.f : () => void, Symbol(Bar.f, Decl(functionMergedWithModule.ts, 4, 16))
|
|
|
|
>Bar : typeof Bar, Symbol(Bar, Decl(functionMergedWithModule.ts, 4, 11))
|
|
|
|
>f : () => void, Symbol(Bar.f, Decl(functionMergedWithModule.ts, 4, 16))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|