TypeScript/tests/cases/conformance/es6/Symbols/symbolType18.ts
2015-02-06 21:32:37 -08:00

11 lines
126 B
TypeScript

//@target: ES6
interface Foo { prop }
var x: symbol | Foo;
x;
if (typeof x === "object") {
x;
}
else {
x;
}