2018-09-11 07:04:09 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////class C {
|
|
|
|
//// constructor(num?: number) {}
|
|
|
|
////}
|
|
|
|
////var a = C();
|
|
|
|
////var b = C(3);
|
|
|
|
|
|
|
|
verify.codeFixAll({
|
|
|
|
fixId: "addMissingNewOperator",
|
2018-09-11 12:56:51 +02:00
|
|
|
fixAllDescription: "Add missing 'new' operator to all calls",
|
2018-09-11 07:04:09 +02:00
|
|
|
newFileContent:
|
|
|
|
`class C {
|
|
|
|
constructor(num?: number) {}
|
|
|
|
}
|
|
|
|
var a = new C();
|
|
|
|
var b = new C(3);`
|
|
|
|
});
|