forked from microsoft/TypeScript
/
50527.symbols
33 lines (25 loc) · 1.01 KB
/
50527.symbols
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
=== tests/cases/compiler/50527.ts ===
type S =
>S : Symbol(S, Decl(50527.ts, 0, 0))
| { type: 'string', value: string }
>type : Symbol(type, Decl(50527.ts, 1, 3))
>value : Symbol(value, Decl(50527.ts, 1, 19))
| { type: 'number', value: number }
>type : Symbol(type, Decl(50527.ts, 2, 3))
>value : Symbol(value, Decl(50527.ts, 2, 19))
| { type: 'unknown', value: unknown }
>type : Symbol(type, Decl(50527.ts, 3, 3))
>value : Symbol(value, Decl(50527.ts, 3, 20))
| { value: undefined };
>value : Symbol(value, Decl(50527.ts, 4, 3))
declare var s: S
>s : Symbol(s, Decl(50527.ts, 6, 11))
>S : Symbol(S, Decl(50527.ts, 0, 0))
if (s.value !== undefined) {
>s.value : Symbol(value, Decl(50527.ts, 1, 19), Decl(50527.ts, 2, 19), Decl(50527.ts, 3, 20), Decl(50527.ts, 4, 3))
>s : Symbol(s, Decl(50527.ts, 6, 11))
>value : Symbol(value, Decl(50527.ts, 1, 19), Decl(50527.ts, 2, 19), Decl(50527.ts, 3, 20), Decl(50527.ts, 4, 3))
>undefined : Symbol(undefined)
s;
>s : Symbol(s, Decl(50527.ts, 6, 11))
}