TypeScript/tests/cases/fourslash/codeFixForgottenThisPropertyAccess02.ts
Nathan Shively-Sanders 60efb65931
infer-from-usage suggestions can't be ignored, and always do something when invoked. (#28206)
* Do not ts-ignore noImplicitAny suggestions

Still need to write tests.

* Add tests

* More tests

* Update baselines
2018-10-29 13:23:33 -07:00

14 lines
277 B
TypeScript

/// <reference path='fourslash.ts' />
////class C {
//// constructor(public foo) {
//// }
//// bar() { [|foo = 10|] };
////}
verify.codeFix({
description: "Add 'this.' to unresolved variable",
index: 0,
newRangeContent: "this.foo = 10",
});