TypeScript/tests/cases/fourslash/codeFixUnusedIdentifier_parameter_modifier.ts

23 lines
457 B
TypeScript
Raw Normal View History

2018-10-19 17:17:45 +02:00
/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
// @noUnusedParameters: true
////export class Example {
//// prop: any;
2018-11-02 15:05:04 +01:00
//// constructor(private readonly arg: any) {
2018-10-19 17:17:45 +02:00
//// this.prop = arg;
//// }
////}
verify.codeFix({
description: "Remove unused declaration for: 'arg'",
2018-10-19 17:17:45 +02:00
newFileContent:
`export class Example {
prop: any;
constructor(arg: any) {
this.prop = arg;
}
}`,
});