22 lines
514 B
TypeScript
22 lines
514 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////class A {
|
|
//// #foo: number;
|
|
//// constructor() {
|
|
//// [|this.foo = 1;|]
|
|
//// }
|
|
////}
|
|
|
|
verify.codeFixAvailable([
|
|
{ description: "Change spelling to '#foo'" },
|
|
{ description: "Declare property 'foo'" },
|
|
{ description: "Add index signature for property 'foo'" },
|
|
{ description: "Remove unused declaration for: '#foo'" },
|
|
]);
|
|
|
|
verify.codeFix({
|
|
index: 0,
|
|
description: "Change spelling to '#foo'",
|
|
newRangeContent: "this.#foo = 1;"
|
|
});
|