mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Update baseline from merging with master
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
//// [circularInferredTypeOfVariable.ts]
|
||||
|
||||
// Repro from #14428
|
||||
|
||||
(async () => {
|
||||
|
||||
@@ -1,34 +1,33 @@
|
||||
=== tests/cases/compiler/circularInferredTypeOfVariable.ts ===
|
||||
|
||||
// Repro from #14428
|
||||
|
||||
(async () => {
|
||||
function foo(p: string[]): string[] {
|
||||
>foo : Symbol(foo, Decl(circularInferredTypeOfVariable.ts, 3, 14))
|
||||
>p : Symbol(p, Decl(circularInferredTypeOfVariable.ts, 4, 17))
|
||||
>foo : Symbol(foo, Decl(circularInferredTypeOfVariable.ts, 2, 14))
|
||||
>p : Symbol(p, Decl(circularInferredTypeOfVariable.ts, 3, 17))
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
function bar(p: string[]): string[] {
|
||||
>bar : Symbol(bar, Decl(circularInferredTypeOfVariable.ts, 6, 5))
|
||||
>p : Symbol(p, Decl(circularInferredTypeOfVariable.ts, 8, 17))
|
||||
>bar : Symbol(bar, Decl(circularInferredTypeOfVariable.ts, 5, 5))
|
||||
>p : Symbol(p, Decl(circularInferredTypeOfVariable.ts, 7, 17))
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
let a1: string[] | undefined = [];
|
||||
>a1 : Symbol(a1, Decl(circularInferredTypeOfVariable.ts, 12, 7))
|
||||
>a1 : Symbol(a1, Decl(circularInferredTypeOfVariable.ts, 11, 7))
|
||||
|
||||
while (true) {
|
||||
let a2 = foo(a1!);
|
||||
>a2 : Symbol(a2, Decl(circularInferredTypeOfVariable.ts, 15, 11))
|
||||
>foo : Symbol(foo, Decl(circularInferredTypeOfVariable.ts, 3, 14))
|
||||
>a1 : Symbol(a1, Decl(circularInferredTypeOfVariable.ts, 12, 7))
|
||||
>a2 : Symbol(a2, Decl(circularInferredTypeOfVariable.ts, 14, 11))
|
||||
>foo : Symbol(foo, Decl(circularInferredTypeOfVariable.ts, 2, 14))
|
||||
>a1 : Symbol(a1, Decl(circularInferredTypeOfVariable.ts, 11, 7))
|
||||
|
||||
a1 = await bar(a2);
|
||||
>a1 : Symbol(a1, Decl(circularInferredTypeOfVariable.ts, 12, 7))
|
||||
>bar : Symbol(bar, Decl(circularInferredTypeOfVariable.ts, 6, 5))
|
||||
>a2 : Symbol(a2, Decl(circularInferredTypeOfVariable.ts, 15, 11))
|
||||
>a1 : Symbol(a1, Decl(circularInferredTypeOfVariable.ts, 11, 7))
|
||||
>bar : Symbol(bar, Decl(circularInferredTypeOfVariable.ts, 5, 5))
|
||||
>a2 : Symbol(a2, Decl(circularInferredTypeOfVariable.ts, 14, 11))
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
=== tests/cases/compiler/circularInferredTypeOfVariable.ts ===
|
||||
|
||||
// Repro from #14428
|
||||
|
||||
(async () => {
|
||||
|
||||
Reference in New Issue
Block a user