107 rings undeclared name

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

Code

input.k

Actual compiler output

error[KORU161]: std/rings:enqueue: no ring named 'nope' — declare it `std/rings:new(nope, capacity: N) { value: Type }` above this use
  --> tests/regression/300_ADVANCED_FEATURES/320_STDLIB/320_107_rings_undeclared_name/input.k:6:0

Compiler must reject:

Compilation must fail with a diagnostic.

Flows

flow ~enqueue click a branch to expand · @labels scroll to their anchor
enqueue (nope, v: 1)

Test Configuration

MUST_ERROR