TypeScript/tests/cases/fourslash/codeFixAddMissingMember2.ts
Andy ecef2dc970 Improve testing of code fixes, and improve diagnostic messages (#18742)
* Improve testing of code fixes, and improve diagnostic messages

* Disambiguate `newFileContent` from `newRangeContent`
2017-09-26 15:16:29 -07:00

20 lines
357 B
TypeScript

/// <reference path='fourslash.ts' />
////class C {
//// method() {
//// this.foo = 10;
//// }
////}
verify.codeFix({
description: "Add index signature for property 'foo'.",
index: 1,
// TODO: GH#18445
newFileContent: `class C {
[x: string]: number;\r
method() {
this.foo = 10;
}
}`
});