22 lines
554 B
Text
22 lines
554 B
Text
=== tests/cases/conformance/es6/Symbols/symbolType17.ts ===
|
|
interface Foo { prop }
|
|
>Foo : Symbol(Foo, Decl(symbolType17.ts, 0, 0))
|
|
>prop : Symbol(prop, Decl(symbolType17.ts, 0, 15))
|
|
|
|
var x: symbol | Foo;
|
|
>x : Symbol(x, Decl(symbolType17.ts, 1, 3))
|
|
>Foo : Symbol(Foo, Decl(symbolType17.ts, 0, 0))
|
|
|
|
x;
|
|
>x : Symbol(x, Decl(symbolType17.ts, 1, 3))
|
|
|
|
if (typeof x === "symbol") {
|
|
>x : Symbol(x, Decl(symbolType17.ts, 1, 3))
|
|
|
|
x;
|
|
>x : Symbol(x, Decl(symbolType17.ts, 1, 3))
|
|
}
|
|
else {
|
|
x;
|
|
>x : Symbol(x, Decl(symbolType17.ts, 1, 3))
|
|
}
|