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

72 lines
1 KiB
Plaintext

=== tests/cases/compiler/es6ModuleFunctionDeclaration.ts ===
export function foo() {
>foo : () => void
}
function foo2() {
>foo2 : () => void
}
foo();
>foo() : void
>foo : () => void
foo2();
>foo2() : void
>foo2 : () => void
export module m1 {
>m1 : typeof m1
export function foo3() {
>foo3 : () => void
}
function foo4() {
>foo4 : () => void
}
foo();
>foo() : void
>foo : () => void
foo2();
>foo2() : void
>foo2 : () => void
foo3();
>foo3() : void
>foo3 : () => void
foo4();
>foo4() : void
>foo4 : () => void
}
module m2 {
>m2 : typeof m2
export function foo3() {
>foo3 : () => void
}
function foo4() {
>foo4 : () => void
}
foo();
>foo() : void
>foo : () => void
foo2();
>foo2() : void
>foo2 : () => void
foo3();
>foo3() : void
>foo3 : () => void
foo4();
>foo4() : void
>foo4 : () => void
m1.foo3();
>m1.foo3() : void
>m1.foo3 : () => void
>m1 : typeof m1
>foo3 : () => void
}