TypeScript/tests/cases/fourslash/codeFixInferFromUsageLiteralTypes.ts

11 lines
256 B
TypeScript
Raw Normal View History

2019-09-07 00:15:19 +02:00
/// <reference path='fourslash.ts' />
// @noImplicitAny: true
//// function foo([|a, m |]) {
//// a = 'hi'
//// m = 1
//// }
verify.rangeAfterCodeFix("a: string, m: number", /*includeWhiteSpace*/ undefined, /*errorCode*/ undefined, /*index*/0);