2017-03-14 06:49:54 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-09-27 00:16:29 +02:00
|
|
|
////class C {
|
2017-03-14 06:49:54 +01:00
|
|
|
//// static method() {
|
|
|
|
//// this.foo = 10;
|
|
|
|
//// }
|
2017-09-27 00:16:29 +02:00
|
|
|
////}
|
2017-03-14 06:49:54 +01:00
|
|
|
|
2017-09-27 00:16:29 +02:00
|
|
|
verify.codeFix({
|
2017-12-02 01:38:59 +01:00
|
|
|
description: "Declare static property 'foo'",
|
2017-09-27 00:16:29 +02:00
|
|
|
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;
|
|
|
|
}
|
2017-09-27 00:16:29 +02:00
|
|
|
}`
|
|
|
|
});
|