TypeScript/tests/cases/compiler/unusedDestructuringParameters.ts

7 lines
140 B
TypeScript
Raw Normal View History

//@noUnusedParameters: true
const f = ([a]) => { };
f([1]);
const f2 = ({a}) => { };
f2({ a: 10 });
const f3 = ([_]) => { };
f3([10]);