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

5 lines
215 B
TypeScript
Raw Normal View History

//@target: ES6
Symbol() instanceof Symbol;
2015-02-05 04:18:54 +01:00
Symbol instanceof Symbol();
(Symbol() || {}) instanceof Object; // This one should be okay, it's a valid way of distinguishing types
Symbol instanceof (Symbol() || {});