swc/crates/swc_ecma_lints/tests/pass/issue-3929/1/input.ts
2022-03-10 03:59:46 +00:00

8 lines
232 B
TypeScript

function fn1({ x, y }: { x: string, y: string }): string {
return x + y
}
function fn2({ x, y }: { x: string, y: string }): string {
const fn3: ({ x, y }: { x: string, y: string }) => string = fn1
return fn3({ x, y })
}