20 lines
443 B
Plaintext
20 lines
443 B
Plaintext
=== tests/cases/compiler/topLevelExports.ts ===
|
|
export var foo = 3;
|
|
>foo : number
|
|
>3 : 3
|
|
|
|
function log(n:number) { return n;}
|
|
>log : (n: number) => number
|
|
>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 : (n: number) => number
|
|
>foo : number
|
|
>toString : (radix?: number) => string
|
|
|