2018-11-02 01:32:12 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////for ([x, y] of [[1,2]]) {}
|
|
|
|
////for ([x] of [[1,2]]) {}
|
|
|
|
|
|
|
|
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 [[1,2]]) {}
|
|
|
|
for (const [x] of [[1,2]]) {}`
|
|
|
|
});
|