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

21 lines
407 B
TypeScript

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