017 with arg requires import

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

Code

input.k

Actual compiler output

error[KORU142]: [with] module 'app/ghost' is not imported — the annotation abbreviates a dependency this file declares; write 'import app/ghost' to declare it
  --> tests/regression/600_STDLIB/641_PARSER/641_017_with_arg_requires_import/input.k:10:0

❌ Compiler coordination error: error[KORU142]: [with] module 'app/ghost' is not imported — the annotation abbreviates a dependency this file declares; write 'import app/ghost' to declare it
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Must fail at runtime with:

CONTAINS 'app/ghost' is not imported

Flows

subflow ~start click a branch to expand · @labels scroll to their anchor
haunt
flow ~start click a branch to expand · @labels scroll to their anchor
start

Test Configuration

MUST_ERROR

koru.json: