32 lines
482 B
Text
32 lines
482 B
Text
=== 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
|
|
}
|
|
}
|