TypeScript/tests/baselines/reference/symbolType19.types
2015-02-06 21:32:37 -08:00

24 lines
307 B
Plaintext

=== tests/cases/conformance/es6/Symbols/symbolType19.ts ===
enum E { }
>E : E
var x: symbol | E;
>x : symbol | E
>E : E
x;
>x : symbol | E
if (typeof x === "number") {
>typeof x === "number" : boolean
>typeof x : string
>x : symbol | E
x;
>x : E
}
else {
x;
>x : symbol
}