067 reject bare literal at phantom param

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

Code

input.kz

Actual compiler output

error[KORU030]: Phantom state mismatch: argument 'c' has no tracked phantom state, but this event requires state '<celsius>'.
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_067_reject_bare_literal_at_phantom_param/input.kz:27: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

Phantom state mismatch: argument 'c' has no tracked phantom state

Flows

flow ~to-fahrenheit click a branch to expand · @labels scroll to their anchor
to-fahrenheit (c: 22.5)

Test Configuration

MUST_ERROR