`examples/177-generic-into-block.sx` exercises a closure shape (`Closure(s64, s64) -> void`) that stdlib's hand-rolled `Into(Block)` impls don't cover. Today: the focused diagnostic "no `Into(Block) for cl_s64_s64__void` impl — add a per-signature `__block_invoke_<sig>` trampoline + Into impl alongside the existing ones in modules/std/objc_block.sx, or declare it in your own code" fires at the `xx cl : Block` site. The next commit adds the generic `impl Into(Block) for Closure(..$args) -> $R` to `library/modules/std/objc_block.sx` (wiring `#insert build_block_convert($args, $R)` from step 5.1.B) plus the lowering plumbing needed to make pack + single-type `$` refs work inside the impl's monomorphisation. The test then flips green — the per-shape trampoline emitted by build_block_convert ferries (10, 20) through to the sx closure and the side-effect stores land in g_a / g_b.
2 lines
2 B
Plaintext
2 lines
2 B
Plaintext
0
|