✓
Passing This code compiles and runs correctly.
Code
// TEST: Auto-proc synthesis must fail when shapes don't match
//
// MUST_FAIL: Missing proc
//
// When input/output don't match, the compiler cannot synthesize a proc.
// This event has different field names - no auto-synthesis possible.
~import "$std/io"
// Input has 'input_val', output has 'output_val' - MISMATCH
~pub event mismatched { input_val: i32 }
| done { output_val: i32 }
// This should fail - no proc and can't synthesize
~mismatched(input_val: 42)
| done d |> std.io:print.ln("should not reach here")
Error Verification
Expected Error Pattern
Missing proc implementationActual Compiler Output
[PHASE 2.4] Calling run_pass for transforms\n[PHASE 2.5] Executing comptime_main() - running comptime flows
[PHASE 2.5] Comptime flows complete (26 items)
[PHASE 2.6] Rescanning transformed AST (26 items)
[PHASE 2.6] Rescan complete: 27 comptime events found
[0] std.compiler:requires
[1] std.compiler:flag.declare
[2] std.compiler:command.declare
[3] std.compiler:coordinate
[4] std.compiler:context_create
[5] std.io:print.ln
[6] std.io:print.blk
[7] std.testing:test
[8] std.testing:validate_mocks
[9] std.testing:test.with_harness
[10] std.testing:test.harness
[11] std.testing:assert
[12] std.testing:test.property.equivalent
[13] std.deps:deps
[14] std.deps:requires.system
[15] std.deps:requires.zig
[16] std.control:if
[17] std.control:for
[18] std.control:capture
[19] std.control:const
[20] std.build:requires
[21] std.build:variants
[22] std.build:config
[23] std.build:command.sh
[24] std.build:command.zig
[25] std.build:step
[26] std.template:define
error[KORU100]: unused binding 'd'
--> flow_check:17:0
❌ Compiler coordination error: Flow validation failed
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/350_AUTO_PROC/350_003_mismatch_must_error/backend.zig:10859:17: 0x100bce433 in emit (backend)
return error.CompilerCoordinationFailed;
^
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/350_AUTO_PROC/350_003_mismatch_must_error/backend.zig:10943:28: 0x100bcf1bf in main (backend)
const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
^Test Configuration
MUST_FAIL