30a96ba335
* add support of add undefined type to propertyDeclaration * add support of add Definite Assignment Assertions to propertyDeclaration * add support of add Initializer to propertyDeclaration * remove useless parameter * fix PropertyDeclaration emit missing exclamationToken * merge fixes and fix * fix unnecessary type assert
23 lines
No EOL
393 B
TypeScript
23 lines
No EOL
393 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @strict: true
|
|
|
|
//// abstract class A { abstract a (); }
|
|
////
|
|
//// class AT extends A { a () {} }
|
|
////
|
|
//// class T {
|
|
//// a: AT;
|
|
//// }
|
|
|
|
verify.codeFix({
|
|
description: `Add initializer to property 'a'`,
|
|
newFileContent: `abstract class A { abstract a (); }
|
|
|
|
class AT extends A { a () {} }
|
|
|
|
class T {
|
|
a: AT = new AT;
|
|
}`,
|
|
index: 2
|
|
}) |