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