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
16 lines
419 B
TypeScript
16 lines
419 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
//// abstract class A {
|
|
//// private abstract x: number;
|
|
//// m() { this.x; } // Avoid unused private
|
|
//// }
|
|
////
|
|
//// class C extends A {[| |]}
|
|
|
|
// We don't know how to fix this problem. We can:
|
|
// 1) Make x protected, and then insert.
|
|
// 2) Make x private, and then insert.
|
|
// 3) Make x not abstract.
|
|
// So we offer no fixes.
|
|
verify.not.codeFixAvailable();
|