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({
|
2020-01-18 22:28:19 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}`,
|
|
|
|
});
|