TypeScript/tests/cases/fourslash/codeFixAddMissingMember7.ts

21 lines
363 B
TypeScript
Raw Normal View History

2017-03-14 06:49:54 +01:00
/// <reference path='fourslash.ts' />
// @checkJs: true
// @allowJs: true
// @Filename: a.js
////class C {
2017-03-14 06:49:54 +01:00
//// static p = ()=>{ this.foo === 10 };
////}
verify.codeFix({
description: "Initialize static property 'foo'",
index: 2,
newFileContent: `class C {
2017-03-14 06:49:54 +01:00
static p = ()=>{ this.foo === 10 };
2018-01-12 02:43:27 +01:00
}
2018-01-12 02:43:27 +01:00
C.foo = undefined;
`
});