18 lines
413 B
Text
18 lines
413 B
Text
=== tests/cases/compiler/topLevelExports.ts ===
|
|
export var foo = 3;
|
|
>foo : number
|
|
|
|
function log(n:number) { return n;}
|
|
>log : typeof log
|
|
>n : number
|
|
>n : number
|
|
|
|
void log(foo).toString();
|
|
>void log(foo).toString() : undefined
|
|
>log(foo).toString() : string
|
|
>log(foo).toString : (radix?: number) => string
|
|
>log(foo) : number
|
|
>log : typeof log
|
|
>foo : number
|
|
>toString : (radix?: number) => string
|
|
|