TypeScript/tests/baselines/reference/functionMergedWithModule.types
2015-04-15 16:44:20 -07:00

34 lines
496 B
Plaintext

=== tests/cases/compiler/functionMergedWithModule.ts ===
function foo(title: string) {
>foo : typeof foo
>title : string
var x = 10;
>x : number
>10 : number
}
module foo.Bar {
>foo : typeof foo
>Bar : typeof Bar
export function f() {
>f : () => void
}
}
module foo.Baz {
>foo : typeof foo
>Baz : typeof Baz
export function g() {
>g : () => void
Bar.f();
>Bar.f() : void
>Bar.f : () => void
>Bar : typeof Bar
>f : () => void
}
}