mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 11:54:44 -06:00
Update baselines with any[] inferences
This commit is contained in:
parent
b69f5af08e
commit
3c79225f48
@ -10,5 +10,5 @@
|
||||
//// return p.push(12)
|
||||
//// }
|
||||
|
||||
verify.rangeAfterCodeFix("p: number[], a: string[], b: any[], c: boolean[], d: any[], e: number[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0);
|
||||
verify.rangeAfterCodeFix("p: number[], a: string[], b: any[], c: boolean[], d: any[], e: any[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0);
|
||||
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @noImplicitAny: true
|
||||
//// function foo([|p, a, b, c, d |]) {
|
||||
//// function foo([|p, a, b |]) {
|
||||
//// var x
|
||||
//// p.charAt(x)
|
||||
//// a.charAt(0)
|
||||
//// b.concat('hi')
|
||||
//// }
|
||||
|
||||
verify.rangeAfterCodeFix("p: string, a: string, b: string | string[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0);
|
||||
verify.rangeAfterCodeFix("p: string, a: string, b: string | any[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user