TypeScript/tests/baselines/reference/validVoidValues.types

14 lines
377 B
Text

=== tests/cases/conformance/types/primitives/void/validVoidValues.ts ===
var x: void;
>x : void, Symbol(x,Decl(validVoidValues.ts,0,3))
x = undefined;
>x = undefined : undefined
>x : void, Symbol(x,Decl(validVoidValues.ts,0,3))
>undefined : undefined, Symbol(undefined)
x = null;
>x = null : null
>x : void, Symbol(x,Decl(validVoidValues.ts,0,3))
>null : null