006 http routing

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Expected compiler error

error[PARSE003]: Zig-style struct syntax '.{' is not valid in Koru parameter values — pass fields as named parameters instead
  --> tests/regression/300_ADVANCED_FEATURES/350_PATTERN_BRANCHES/350_006_http_routing/input.kz:23:1
    |
 23 | ~handle(req: .{ .method = "GET", .path = "/health" })
    | ^

Test Configuration

Expected Error:

Zig-style struct syntax