061 reject zig struct syntax

✓ 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 Koru — use 'branch_name { field: value }' instead
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_061_reject_zig_struct_syntax/input.kz:13:1
    |
 13 |     .{ .success = "mock response" }
    | ^

Test Configuration

Expected Error:

Zig-style struct syntax