Skip to content

Commit 3c79225

Browse files
committed
Update baselines with any[] inferences
1 parent b69f5af commit 3c79225

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/cases/fourslash/codeFixInferFromUsageArray.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
//// return p.push(12)
1111
//// }
1212

13-
verify.rangeAfterCodeFix("p: number[], a: string[], b: any[], c: boolean[], d: any[], e: number[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0);
13+
verify.rangeAfterCodeFix("p: number[], a: string[], b: any[], c: boolean[], d: any[], e: any[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0);
1414

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/// <reference path='fourslash.ts' />
22

33
// @noImplicitAny: true
4-
//// function foo([|p, a, b, c, d |]) {
4+
//// function foo([|p, a, b |]) {
55
//// var x
66
//// p.charAt(x)
77
//// a.charAt(0)
88
//// b.concat('hi')
99
//// }
1010

11-
verify.rangeAfterCodeFix("p: string, a: string, b: string | string[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0);
11+
verify.rangeAfterCodeFix("p: string, a: string, b: string | any[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0);
1212

0 commit comments

Comments
 (0)