203 reject tilde in dot k

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

Code

input.k

Actual compiler output

error[PARSE003]: '~' is the host->Koru switch and has no meaning in a pure-Koru '.k' file — write the construct without it
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_203_reject_tilde_in_dot_k/input.k:20:1
    |
 20 | ~import std/io
    | ^

Frontend must reject with:

CONTAINS error[PARSE003]
CONTAINS host->Koru switch
CONTAINS pure-Koru '.k' file

Test Configuration

MUST_ERROR