043 read stdin no free

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

Code

input.k

Actual compiler output

error[KORU030]: Resource 'content' carries obligation <allocated!> was not discharged. Call: std/io:free
  --> tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_043_read_stdin_no_free/input.k:10:1

Must contain:

KORU030

Flows

flow ~read-stdin click a branch to expand · @labels scroll to their anchor
read-stdin

Test Configuration

MUST_ERROR

Compiler Flags:

--auto-discharge=disable