TypeScript/tests/cases/fourslash/codeFixAddMissingConstInForLoopWithObjectDestructuring1.ts
2018-11-15 23:05:14 +01:00

9 lines
216 B
TypeScript

/// <reference path='fourslash.ts' />
////for ({ x } of [{ x: 0 }]) { }
verify.codeFix({
description: "Add 'const' to unresolved variable",
newFileContent: "for (const { x } of [{ x: 0 }]) { }"
});