TypeScript/tests/cases/fourslash/codeFixAddMissingMember6.ts
2017-03-13 22:50:21 -07:00

18 lines
405 B
TypeScript

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