Files
ValueScript/inputs/passing/destructuring/param/deeply_nested.ts
2023-03-01 12:35:11 +11:00

10 lines
203 B
TypeScript

// test_ouput! 42
export default function main() {
return foo([[[{ x: { y: [[{ z: 42 }]] } }]]]);
}
function foo([[[{ x: { y: [[{ z }]] } }]]]: [[[{ x: { y: [[{ z: number }]] } }]]]) {
return z;
}