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

22 lines
225 B
TypeScript

//// [symbolType18.ts]
interface Foo { prop }
var x: symbol | Foo;
x;
if (typeof x === "object") {
x;
}
else {
x;
}
//// [symbolType18.js]
var x;
x;
if (typeof x === "object") {
x;
}
else {
x;
}