056 anytype tor param refused

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.kz

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