19 lines
448 B
Text
19 lines
448 B
Text
=== tests/cases/compiler/topLevelExports.ts ===
|
|
export var foo = 3;
|
|
>foo : number
|
|
>3 : number
|
|
|
|
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
|
|
|