71 lines
1 KiB
Text
71 lines
1 KiB
Text
=== 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
|
|
}
|