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

22 lines
433 B
TypeScript

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