* Make code fix to add 'this.' work for statics * Add 'C.' instead of 'this.' * DanielRosenwasser code review
23 lines
400 B
TypeScript
23 lines
400 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////class C {
|
|
//// foo: number;
|
|
//// m() {
|
|
//// foo;
|
|
//// foo;
|
|
//// }
|
|
////}
|
|
|
|
verify.codeFixAll({
|
|
fixId: "forgottenThisPropertyAccess",
|
|
fixAllDescription: "Add qualifier to all unresolved variables matching a member name",
|
|
newFileContent:
|
|
`class C {
|
|
foo: number;
|
|
m() {
|
|
this.foo;
|
|
this.foo;
|
|
}
|
|
}`,
|
|
});
|