TypeScript/tests/baselines/reference/functionMergedWithModule.types

34 lines
496 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/functionMergedWithModule.ts ===
function foo(title: string) {
>foo : typeof foo
>title : string
2014-08-15 23:33:16 +02:00
var x = 10;
>x : number
2015-04-13 21:36:11 +02:00
>10 : number
2014-08-15 23:33:16 +02:00
}
module foo.Bar {
>foo : typeof foo
>Bar : typeof Bar
2014-08-15 23:33:16 +02:00
export function f() {
>f : () => void
2014-08-15 23:33:16 +02:00
}
}
module foo.Baz {
>foo : typeof foo
>Baz : typeof Baz
2014-08-15 23:33:16 +02:00
export function g() {
>g : () => void
2014-08-15 23:33:16 +02:00
Bar.f();
>Bar.f() : void
>Bar.f : () => void
>Bar : typeof Bar
>f : () => void
2014-08-15 23:33:16 +02:00
}
}