TypeScript/tests/cases/conformance/es6/Symbols/symbolType18.ts

11 lines
126 B
TypeScript
Raw Normal View History

2015-02-05 21:30:22 +01:00
//@target: ES6
interface Foo { prop }
var x: symbol | Foo;
x;
if (typeof x === "object") {
x;
}
else {
x;
}