TypeScript/tests/baselines/reference/symbolType18.js

22 lines
225 B
TypeScript
Raw Normal View History

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