120 reject square bracket phantom

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

Code

input.kz

Actual compiler output

error[KORU033]: invalid phantom-state syntax
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_120_reject_square_bracket_phantom/input.kz:4:51
    |
  4 | // checking and false safety). See AST: `*Resource[active!]` → type stays
    |                                                   ^
  hint: phantom state uses angle brackets — write `*Resource<active!>`

Frontend must reject with:

CONTAINS error[KORU033]
CONTAINS angle brackets

Test Configuration

MUST_ERROR