TypeScript/tests/cases/fourslash/codeFixAddMissingMember3.ts

19 lines
335 B
TypeScript
Raw Normal View History

2017-03-14 06:49:54 +01:00
/// <reference path='fourslash.ts' />
////class C {
2017-03-14 06:49:54 +01:00
//// static method() {
//// this.foo = 10;
//// }
////}
2017-03-14 06:49:54 +01:00
verify.codeFix({
description: "Declare static property 'foo'",
index: 0,
newFileContent: `class C {
2018-01-12 02:43:27 +01:00
static foo: number;
2017-03-14 06:49:54 +01:00
static method() {
this.foo = 10;
}
}`
});