✓
Passing Passing: the compiler rejects this program as expected.
Code
// A cap() gate atom consults a capability grant — `--cap=<name>` flags
// carry grants (name=value provider atoms). A consult no grant covered is
// undeclared capability use: refused by the cap audit, the 310_145
// bare-flag audit's mirror (claimed_caps sink in comptime_eval).
import std/io
[cap(fs)]import std/io
std/io:print.ln("x")
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 itFlows
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "x")
Test Configuration
MUST_ERROR