24842b4002
* When --noUnusedLocals/--noUnusedParameters is disabled, add suggestions instead of errors * Improve performance: do not add unused suggestion diagnostics unless asking for a suggestion * Add "unused" flag to diagnostics * Code review * reportsUnused -> reportsUnnecessary * Fix test
12 lines
267 B
TypeScript
12 lines
267 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @noImplicitAny: true
|
|
////function f(a: number, [|...rest |]){
|
|
//// a; rest;
|
|
////}
|
|
////f(1);
|
|
////f(2, "s1");
|
|
////f(3, "s1", "s2");
|
|
////f(3, "s1", "s2", "s3", "s4");
|
|
|
|
verify.rangeAfterCodeFix("...rest: string[]"); |