TypeScript/tests/cases/fourslash/codeFixInferFromUsageString.ts
2019-09-12 11:18:47 -07:00

13 lines
326 B
TypeScript

/// <reference path='fourslash.ts' />
// @noImplicitAny: true
//// function foo([|p, a, b |]) {
//// var x
//// p.charAt(x)
//// a.charAt(0)
//// b.concat('hi')
//// }
verify.rangeAfterCodeFix("p: string, a: string, b: string | any[]", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0);