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
21 lines
405 B
TypeScript
21 lines
405 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @noImplicitAny: true
|
|
////function f1(a) { a; }
|
|
////function h1() {
|
|
//// class C { p: number };
|
|
//// f1({ ofTypeC: new C() });
|
|
////}
|
|
////
|
|
////function f2(a) { a; }
|
|
////function h2() {
|
|
//// interface I { a: number }
|
|
//// var i: I = {a : 1};
|
|
//// f2(i);
|
|
//// f2(2);
|
|
//// f2(false);
|
|
////}
|
|
////
|
|
|
|
verify.not.codeFixAvailable();
|