2017-12-07 21:14:18 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////class C {
|
|
|
|
//// foo: number;
|
|
|
|
//// m() {
|
|
|
|
//// foo;
|
|
|
|
//// foo;
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
|
|
|
verify.codeFixAll({
|
|
|
|
fixId: "forgottenThisPropertyAccess",
|
2018-04-20 00:39:44 +02:00
|
|
|
fixAllDescription: "Add qualifier to all unresolved variables matching a member name",
|
2017-12-07 21:14:18 +01:00
|
|
|
newFileContent:
|
|
|
|
`class C {
|
|
|
|
foo: number;
|
|
|
|
m() {
|
|
|
|
this.foo;
|
|
|
|
this.foo;
|
|
|
|
}
|
|
|
|
}`,
|
|
|
|
});
|