TypeScript/tests/baselines/reference/symbolType17.types
2015-02-06 21:32:37 -08:00

24 lines
350 B
Text

=== tests/cases/conformance/es6/Symbols/symbolType17.ts ===
interface Foo { prop }
>Foo : Foo
>prop : any
var x: symbol | Foo;
>x : symbol | Foo
>Foo : Foo
x;
>x : symbol | Foo
if (typeof x === "symbol") {
>typeof x === "symbol" : boolean
>typeof x : string
>x : symbol | Foo
x;
>x : symbol
}
else {
x;
>x : Foo
}