Files
ValueScript/inputs/passing/destructuring/param/deeply_nested.ts

10 lines
205 B
TypeScript

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