TypeScript/tests/baselines/reference/functionMergedWithModule.types
2014-08-15 14:37:48 -07:00

33 lines
482 B
Plaintext

=== tests/cases/compiler/functionMergedWithModule.ts ===
function foo(title: string) {
>foo : typeof foo
>title : string
var x = 10;
>x : 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
}
}