TypeScript/tests/cases/fourslash/codeFixUnusedIdentifier_parameter_modifier.ts

23 lines
457 B
TypeScript

/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
// @noUnusedParameters: true
////export class Example {
//// prop: any;
//// constructor(private readonly arg: any) {
//// this.prop = arg;
//// }
////}
verify.codeFix({
description: "Remove unused declaration for: 'arg'",
newFileContent:
`export class Example {
prop: any;
constructor(arg: any) {
this.prop = arg;
}
}`,
});