TypeScript/tests/cases/fourslash/codeFixClassSuperMustPrecedeThisAccess_all.ts
Andy 3e32e15895
Add 'fixAllDescription' property to CodeFixAction (#22616)
* Add 'fixAllDescription' property to CodeFixAction

* Code review

* Add to protocol

* Make fixAllDescription be just a string
2018-03-27 18:21:21 -07:00

35 lines
642 B
TypeScript

/// <reference path='fourslash.ts' />
////class C extends Object {
//// constructor() {
//// this;
//// this;
//// super();
//// }
////}
////class D extends Object {
//// constructor() {
//// this;
//// super();
//// }
////}
verify.codeFixAll({
fixId: "classSuperMustPrecedeThisAccess",
fixAllDescription: "Make all 'super()' calls the first statement in their constructor",
newFileContent: `class C extends Object {
constructor() {
super();
this;
this;
}
}
class D extends Object {
constructor() {
super();
this;
}
}`,
});