✓
Passing Passing: the compiler rejects this program as expected.
Code
// KORU213: `anytype` on a tor input field is a Zig parameter qualifier, not
// a type — spliced into the emitted Input struct it fails Zig's grammar and
// surfaced as KORU207 inside generated code. Generics stay comptime codegen
// (no parametric tor grammar, ruled 2026-06-13); the field names a concrete
// type or the declaration is refused at check time.
~tor peek { v: anytype }
~peek -> v
Actual compiler output
error[KORU213]: tor field 'v' declares 'anytype' — `anytype` is a parameter qualifier, not a type; tor params take concrete types (parametric generics are comptime codegen, not a field grammar)
--> tests/regression/200_COMPILER_FEATURES/220_FLOW_CHECKER/220_056_anytype_tor_param_refused/input.kz:7:1
|
7 | ~tor peek { v: anytype }
| ^Must fail at frontend compile:
Parsing or type-checking must reject the program.
Error output must contain
tor field 'v' declares 'anytype' — `anytype` is a parameter qualifier, not a type; tor params take concrete types (parametric generics are comptime codegen, not a field grammar)Test Configuration
MUST_ERROR