TypeScript/tests/cases/compiler/unusedVariablesWithUnderscoreInForOfLoop1.ts

10 lines
180 B
TypeScript

//@noUnusedLocals:true
function f() {
for (const [_a, b] of [['key', 1]]) {}
for (const [a, _b] of [['key', 1]]) {}
for (const [a, b] of [['key', 1]]) {}
}