2017-03-14 06:49:54 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @checkJs: true
|
|
|
|
// @allowJs: true
|
|
|
|
|
|
|
|
// @Filename: a.js
|
2017-09-27 00:16:29 +02:00
|
|
|
////class C {
|
2017-03-14 06:49:54 +01:00
|
|
|
//// static p = ()=>{ this.foo === 10 };
|
|
|
|
////}
|
|
|
|
|
2017-09-27 00:16:29 +02:00
|
|
|
verify.codeFix({
|
2017-12-02 01:38:59 +01:00
|
|
|
description: "Initialize static property 'foo'",
|
2017-09-27 00:16:29 +02:00
|
|
|
index: 2,
|
|
|
|
newFileContent: `class C {
|
2017-03-14 06:49:54 +01:00
|
|
|
static p = ()=>{ this.foo === 10 };
|
2018-01-12 02:43:27 +01:00
|
|
|
}
|
2018-05-03 21:58:42 +02:00
|
|
|
|
2018-01-12 02:43:27 +01:00
|
|
|
C.foo = undefined;
|
2017-09-27 00:16:29 +02:00
|
|
|
`
|
|
|
|
});
|