15 lines
228 B
TypeScript
15 lines
228 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
// @strict: true
|
||
|
|
||
|
//// class T {
|
||
|
//// a: 2;
|
||
|
//// }
|
||
|
|
||
|
verify.codeFix({
|
||
|
description: `Add initializer to property 'a'`,
|
||
|
newFileContent: `class T {
|
||
|
a: 2 = 2;
|
||
|
}`,
|
||
|
index: 2
|
||
|
})
|