24 lines
307 B
Plaintext
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
|
||
|
}
|