TypeScript/tests/cases/fourslash/codeFixInferFromUsageRestParam2.ts

13 lines
283 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
// @noImplicitAny: true
////function f(a: number, [|...rest |]){
//// a; rest;
////}
////f(1);
////f(2, "s1");
////f(3, false, "s2");
////f(4, "s1", "s2", false, "s4");
verify.rangeAfterCodeFix("...rest: (string | boolean)[]");