2018-11-02 01:32:12 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////for ({ x, y } of [{ x: 0, y: 1 }]) { }
|
|
|
|
////for ({ x } of [{ x: 0 }]) { }
|
|
|
|
|
|
|
|
verify.codeFixAll({
|
2019-07-07 13:56:34 +02:00
|
|
|
fixId: "addMissingConst",
|
2018-11-02 01:32:12 +01:00
|
|
|
fixAllDescription: "Add 'const' to all unresolved variables",
|
|
|
|
newFileContent:
|
|
|
|
`for (const { x, y } of [{ x: 0, y: 1 }]) { }
|
|
|
|
for (const { x } of [{ x: 0 }]) { }`
|
|
|
|
});
|