zig keyword escaping

✓ Passing This code compiles and runs correctly.

Code

// Test 203d: Zig keyword escaping - simplified test
//
// This test verifies that branch names that are Zig keywords get escaped.

const std = @import("std");

// Event with branch name "error" (Zig keyword)
~event check { value: i32 }
| error []const u8
| ok i32

~proc check {
    if (value < 0) {
        return .{ .@"error" = "negative" };
    }
    return .{ .ok = value };
}

// Simple flow
~check(value: -1)
| error _ |> _
| ok _ |> _
input.kz

Test Configuration

MUST_RUN