Update baseline from merging with master

This commit is contained in:
Kanchalai Tanglertsampan
2017-03-06 12:40:16 -08:00
parent 7b43d7a142
commit 132f9f97a7
3 changed files with 11 additions and 14 deletions

View File

@@ -1,5 +1,4 @@
//// [circularInferredTypeOfVariable.ts]
// Repro from #14428
(async () => {

View File

@@ -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))
}
});

View File

@@ -1,5 +1,4 @@
=== tests/cases/compiler/circularInferredTypeOfVariable.ts ===
// Repro from #14428
(async () => {