TypeScript/tests/cases/fourslash/codeFixAddMissingMember5.ts

21 lines
407 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 {
//// static method() {
//// ()=>{ this.foo === 10 };
//// }
////}
////|]
2017-06-01 20:01:00 +02:00
verify.getAndApplyCodeFix(/*errorCode*/ undefined, /*index*/ 0);
2017-06-01 19:49:08 +02:00
verify.currentFileContentIs(`class C {
2017-03-14 06:49:54 +01:00
static method() {
()=>{ this.foo === 10 };
}
}
2017-06-01 19:49:08 +02:00
C.foo = undefined;
`);