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