TypeScript/tests/cases/fourslash/codeFixAddMissingMember_classIsNotFirstDeclaration.ts
Andy 4309c0e7f8
Fix bug: ClassDeclaration not guaranteed to be first declaration of a class (#22983)
* Fix bug: ClassDeclaration not guaranteed to be first declaration of a class

* fix test
2018-03-29 14:55:22 -07:00

18 lines
271 B
TypeScript

/// <reference path='fourslash.ts' />
////interface C {}
////class C {
////}
////new C().x = 0;
verify.codeFix({
description: "Declare property 'x'",
index: 0,
newFileContent:
`interface C {}
class C {
x: number;
}
new C().x = 0;`,
});