* 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
9 lines
199 B
TypeScript
9 lines
199 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @noImplicitAny: true
|
|
////function f(a: number, [|...rest |]){
|
|
//// a;
|
|
//// rest.push(22);
|
|
////}
|
|
|
|
verify.rangeAfterCodeFix("...rest: number[]"); |