TypeScript/tests/cases/compiler/unusedDestructuringParameters.ts
2016-10-24 11:17:35 -07:00

7 lines
140 B
TypeScript

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