4309c0e7f8
* Fix bug: ClassDeclaration not guaranteed to be first declaration of a class * fix test
18 lines
271 B
TypeScript
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;`,
|
|
});
|