TypeScript/tests/cases/fourslash/codeFixAddMissingMember7.ts
2017-06-01 11:01:00 -07:00

18 lines
354 B
TypeScript

/// <reference path='fourslash.ts' />
// @checkJs: true
// @allowJs: true
// @Filename: a.js
////[|class C {
//// static p = ()=>{ this.foo === 10 };
////}
////|]
verify.getAndApplyCodeFix(/*errorCode*/ undefined, /*index*/ 2)
verify.currentFileContentIs(`class C {
static p = ()=>{ this.foo === 10 };
}
C.foo = undefined;
`);