045 metatype when guards

✓ Passing This code compiles and runs correctly.

Code

// Test 310_045: When guards on metatype fields (simplified)
// Verify that 'when' clauses work on metatype observers
// This is a placeholder - when guard evaluation with metatypes is TBD

~import "$std/taps"

~event hello { }
| ok { }
| error { }

~event logger { msg: []const u8 }
| done { }

~[pure]proc hello {
    return .{ .ok = .{} };
}

~[pure]proc logger {
    return .{ .done = .{} };
}

// For now, just verify multiple Profile observations work
// When guards on metatypes are a future feature
~tap(hello -> *)
| Profile p |> logger(msg: p.source)
    | done |> _

~hello()
| ok |> _
| error |> _
input.kz

Test Configuration

MUST_RUN