11 lines
126 B
TypeScript
11 lines
126 B
TypeScript
//@target: ES6
|
|
interface Foo { prop }
|
|
var x: symbol | Foo;
|
|
|
|
x;
|
|
if (typeof x === "symbol") {
|
|
x;
|
|
}
|
|
else {
|
|
x;
|
|
} |