TypeScript/tests/baselines/reference/symbolType19.types

24 lines
307 B
Plaintext
Raw Normal View History

2015-02-05 21:30:22 +01:00
=== 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
}