153 cap atom ungranted consult refuses

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

Code

input.k

Actual compiler output

[import gate] input:8: `import std/io` excluded — no entry true
  `cap(fs)` -> false  [fs = false (absent)]
koruc: capability 'fs' was consulted by a cap() gate but no grant names it

  Grants come from `--cap=<name>` flags — an ungranted consult is undeclared capability use.

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Error output must contain

was consulted by a cap() gate but no grant names it

Flows

flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "x")

Test Configuration

MUST_ERROR