TypeScript/tests/cases/fourslash/codeFixAddMissingMember5.ts
2017-10-04 11:23:58 -07:00

25 lines
443 B
TypeScript

/// <reference path='fourslash.ts' />
// @checkJs: true
// @allowJs: true
// @Filename: a.js
////class C {
//// static method() {
//// ()=>{ this.foo === 10 };
//// }
////}
verify.codeFix({
description: "Initialize static property 'foo'.",
index: 0,
// TODO: GH#18445
newFileContent: `class C {
static method() {
()=>{ this.foo === 10 };
}
}\r
C.foo = undefined;\r
`
});