Skip to content

Commit 132f9f9

Browse files
author
Kanchalai Tanglertsampan
committed
Update baseline from merging with master
1 parent 7b43d7a commit 132f9f9

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

tests/baselines/reference/circularInferredTypeOfVariable.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//// [circularInferredTypeOfVariable.ts]
2-
32
// Repro from #14428
43

54
(async () => {
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
11
=== tests/cases/compiler/circularInferredTypeOfVariable.ts ===
2-
32
// Repro from #14428
43

54
(async () => {
65
function foo(p: string[]): string[] {
7-
>foo : Symbol(foo, Decl(circularInferredTypeOfVariable.ts, 3, 14))
8-
>p : Symbol(p, Decl(circularInferredTypeOfVariable.ts, 4, 17))
6+
>foo : Symbol(foo, Decl(circularInferredTypeOfVariable.ts, 2, 14))
7+
>p : Symbol(p, Decl(circularInferredTypeOfVariable.ts, 3, 17))
98

109
return [];
1110
}
1211

1312
function bar(p: string[]): string[] {
14-
>bar : Symbol(bar, Decl(circularInferredTypeOfVariable.ts, 6, 5))
15-
>p : Symbol(p, Decl(circularInferredTypeOfVariable.ts, 8, 17))
13+
>bar : Symbol(bar, Decl(circularInferredTypeOfVariable.ts, 5, 5))
14+
>p : Symbol(p, Decl(circularInferredTypeOfVariable.ts, 7, 17))
1615

1716
return [];
1817
}
1918

2019
let a1: string[] | undefined = [];
21-
>a1 : Symbol(a1, Decl(circularInferredTypeOfVariable.ts, 12, 7))
20+
>a1 : Symbol(a1, Decl(circularInferredTypeOfVariable.ts, 11, 7))
2221

2322
while (true) {
2423
let a2 = foo(a1!);
25-
>a2 : Symbol(a2, Decl(circularInferredTypeOfVariable.ts, 15, 11))
26-
>foo : Symbol(foo, Decl(circularInferredTypeOfVariable.ts, 3, 14))
27-
>a1 : Symbol(a1, Decl(circularInferredTypeOfVariable.ts, 12, 7))
24+
>a2 : Symbol(a2, Decl(circularInferredTypeOfVariable.ts, 14, 11))
25+
>foo : Symbol(foo, Decl(circularInferredTypeOfVariable.ts, 2, 14))
26+
>a1 : Symbol(a1, Decl(circularInferredTypeOfVariable.ts, 11, 7))
2827

2928
a1 = await bar(a2);
30-
>a1 : Symbol(a1, Decl(circularInferredTypeOfVariable.ts, 12, 7))
31-
>bar : Symbol(bar, Decl(circularInferredTypeOfVariable.ts, 6, 5))
32-
>a2 : Symbol(a2, Decl(circularInferredTypeOfVariable.ts, 15, 11))
29+
>a1 : Symbol(a1, Decl(circularInferredTypeOfVariable.ts, 11, 7))
30+
>bar : Symbol(bar, Decl(circularInferredTypeOfVariable.ts, 5, 5))
31+
>a2 : Symbol(a2, Decl(circularInferredTypeOfVariable.ts, 14, 11))
3332
}
3433
});

tests/baselines/reference/circularInferredTypeOfVariable.types

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
=== tests/cases/compiler/circularInferredTypeOfVariable.ts ===
2-
32
// Repro from #14428
43

54
(async () => {

0 commit comments

Comments
 (0)