TypeScript/tests/cases/fourslash/codeFixForgottenThisPropertyAccess03.ts
2018-01-30 13:25:39 -08:00

16 lines
314 B
TypeScript

/// <reference path='fourslash.ts' />
////class C {
//// foo: number;
//// constructor() {[|
//// /* a comment */foo = 10;
//// |]}
////}
verify.codeFix({
description: "Add 'this.' to unresolved variable",
newRangeContent: `
/* a comment */this.foo = 10;
`
});