009 entry merges companions

✗ Failing This test is currently failing.

Failed: backend-exec

Error Details

output_emitted.zig:53:33: error: type 'u32' does not support struct initialization syntax

Failure Output

🎯 Compiler coordination: Passes: 17 (flow-based: frontend, analysis, emission)
Error: output_emitted.zig:53:33: error: type 'u32' does not support struct initialization syntax
            return .{ .done = x + 100 };
                              ~~^~~~~
referenced by:
    handler [inlined]: output_emitted.zig:45:39
    flow0: output_emitted.zig:36:52
    4 reference(s) hidden; use '-freference-trace=6' to see all references

Code

input.k

Actual

142

Expected output

✓ Zig✓ JavaScript
142
Emitted JavaScript source
// JavaScript implementation facet. Unused on the Zig target (the harness only
// emits Zig), but it must coexist in the merged module without breaking it —
// its |js procs attach to the same events as the |zig variants.
const main_module = {
  compute_event: {
    handler(input) {
      const x = input.x;
      return { tag: "done", done: x + 100 };
    },
  },
  show_event: {
    handler(input) {
      const v = input.v;
      console.log(v);
    },
  },
  flow0() {
    const result_0 = main_module.compute_event.handler({ x: 42 });
    const r = result_0.done;
    {
      const v = r;
      console.log(v);
    }
  },
};
main_module.flow0();

Flows

flow ~compute click a branch to expand · @labels scroll to their anchor
compute (x: 42)

Test Configuration

MUST_RUN