|
| 1 | +=== tests/cases/compiler/controlFlowCommaExpressionAssertionMultiple.ts === |
| 2 | +function Narrow<T>(value: any): asserts value is T {} |
| 3 | +>Narrow : Symbol(Narrow, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 0, 0)) |
| 4 | +>T : Symbol(T, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 0, 16)) |
| 5 | +>value : Symbol(value, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 0, 19)) |
| 6 | +>value : Symbol(value, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 0, 19)) |
| 7 | +>T : Symbol(T, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 0, 16)) |
| 8 | + |
| 9 | +function func(foo: any, bar: any) { |
| 10 | +>func : Symbol(func, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 0, 53)) |
| 11 | +>foo : Symbol(foo, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 2, 14)) |
| 12 | +>bar : Symbol(bar, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 2, 23)) |
| 13 | + |
| 14 | + Narrow<number>(foo), Narrow<string>(bar); |
| 15 | +>Narrow : Symbol(Narrow, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 0, 0)) |
| 16 | +>foo : Symbol(foo, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 2, 14)) |
| 17 | +>Narrow : Symbol(Narrow, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 0, 0)) |
| 18 | +>bar : Symbol(bar, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 2, 23)) |
| 19 | + |
| 20 | + foo; |
| 21 | +>foo : Symbol(foo, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 2, 14)) |
| 22 | + |
| 23 | + bar; |
| 24 | +>bar : Symbol(bar, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 2, 23)) |
| 25 | +} |
| 26 | + |
| 27 | +function func2(foo: any, bar: any, baz: any) { |
| 28 | +>func2 : Symbol(func2, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 6, 1)) |
| 29 | +>foo : Symbol(foo, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 8, 15)) |
| 30 | +>bar : Symbol(bar, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 8, 24)) |
| 31 | +>baz : Symbol(baz, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 8, 34)) |
| 32 | + |
| 33 | + Narrow<number>(foo), Narrow<string>(bar), Narrow<boolean>(baz); |
| 34 | +>Narrow : Symbol(Narrow, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 0, 0)) |
| 35 | +>foo : Symbol(foo, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 8, 15)) |
| 36 | +>Narrow : Symbol(Narrow, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 0, 0)) |
| 37 | +>bar : Symbol(bar, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 8, 24)) |
| 38 | +>Narrow : Symbol(Narrow, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 0, 0)) |
| 39 | +>baz : Symbol(baz, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 8, 34)) |
| 40 | + |
| 41 | + foo; |
| 42 | +>foo : Symbol(foo, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 8, 15)) |
| 43 | + |
| 44 | + bar; |
| 45 | +>bar : Symbol(bar, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 8, 24)) |
| 46 | + |
| 47 | + baz; |
| 48 | +>baz : Symbol(baz, Decl(controlFlowCommaExpressionAssertionMultiple.ts, 8, 34)) |
| 49 | +} |
| 50 | + |
0 commit comments