TypeScript/tests/cases/fourslash/codeFixForgottenThisPropertyAccessECMAPrivate.ts

23 lines
317 B
TypeScript
Raw Normal View History

/// <reference path="fourslash.ts" />
////class K {
//// #value: number;
////
//// foo() {
//// #value/**/;
//// }
////}
verify.codeFix({
index: 0,
description: "Add 'this.' to unresolved variable",
newFileContent:
`class K {
#value: number;
foo() {
this.#value;
}
}`
});