25 lines
256 B
TypeScript
25 lines
256 B
TypeScript
|
//// [symbolType19.ts]
|
||
|
enum E { }
|
||
|
var x: symbol | E;
|
||
|
|
||
|
x;
|
||
|
if (typeof x === "number") {
|
||
|
x;
|
||
|
}
|
||
|
else {
|
||
|
x;
|
||
|
}
|
||
|
|
||
|
//// [symbolType19.js]
|
||
|
var E;
|
||
|
(function (E) {
|
||
|
})(E || (E = {}));
|
||
|
var x;
|
||
|
x;
|
||
|
if (typeof x === "number") {
|
||
|
x;
|
||
|
}
|
||
|
else {
|
||
|
x;
|
||
|
}
|