TypeScript/tests/cases/fourslash/codeFixAddMissingMember7.ts

21 lines
363 B
TypeScript

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