21 lines
225 B
JavaScript
21 lines
225 B
JavaScript
//// [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;
|
|
}
|