TypeScript/tests/baselines/reference/symbolType19.types
2015-04-15 16:44:20 -07:00

25 lines
327 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
>"number" : string
x;
>x : E
}
else {
x;
>x : symbol
}