27 lines
460 B
Text
27 lines
460 B
Text
=== tests/cases/compiler/innerFunc.ts ===
|
|
function salt() {
|
|
>salt : typeof salt
|
|
|
|
function pepper() { return 5;}
|
|
>pepper : () => number
|
|
|
|
return pepper();
|
|
>pepper() : number
|
|
>pepper : () => number
|
|
}
|
|
|
|
module M {
|
|
>M : typeof M
|
|
|
|
export function tungsten() {
|
|
>tungsten : typeof tungsten
|
|
|
|
function oxygen() { return 6; };
|
|
>oxygen : () => number
|
|
|
|
return oxygen();
|
|
>oxygen() : number
|
|
>oxygen : () => number
|
|
}
|
|
}
|
|
|