137 wildcard consume refused

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

Code

input.kz

Actual compiler output

error[KORU033]: Invalid phantom annotation '<!*>' (tor: dispose): '!' promises to settle a NAMED obligation's contract — '*' names none. Use '<!module:state>' to discharge, or '<*>' to borrow any qualification.
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_137_wildcard_consume_refused/input.kz:18:0

❌ Compiler coordination error: Phantom semantic validation failed
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Must fail at runtime:

Program must error when executed.

Error output must contain

Invalid phantom annotation '<!*>' (tor: dispose): '!' promises to settle a NAMED obligation's contract — '*' names none

Flows

flow ~open click a branch to expand · @labels scroll to their anchor
open

Test Configuration

MUST_ERROR