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
32 lines
628 B
TypeScript
32 lines
628 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////abstract class A {
|
|
//// abstract get a(): string;
|
|
//// abstract set a(newName: string);
|
|
////
|
|
//// abstract get b(): number;
|
|
////
|
|
//// abstract set c(arg: number | string);
|
|
////}
|
|
////
|
|
////class C implements A {}
|
|
|
|
verify.codeFix({
|
|
description: "Implement interface 'A'",
|
|
newFileContent:
|
|
`abstract class A {
|
|
abstract get a(): string;
|
|
abstract set a(newName: string);
|
|
|
|
abstract get b(): number;
|
|
|
|
abstract set c(arg: number | string);
|
|
}
|
|
|
|
class C implements A {
|
|
a: string;
|
|
b: number;
|
|
c: string | number;
|
|
}`,
|
|
});
|