040 subflow drops obligation on input

✗ Failing This test is currently failing.

Failed: frontend

Failure Output

error[KORU118]: 'File' is call-site syntax — it produces no runtime value and cannot appear in a return or resume type
  --> /Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_040_subflow_drops_obligation_on_input/fs.kz:8:1
  hint: capture kinds (Expression, Source, File, EmbedFile, InvocationMeta) exist only as tor parameters; produce a runtime type instead

Code

input.kz

Supporting Files

fs.kz

Actual compiler output

error[KORU118]: 'File' is call-site syntax — it produces no runtime value and cannot appear in a return or resume type
  --> /Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_040_subflow_drops_obligation_on_input/fs.kz:8:1
  hint: capture kinds (Expression, Source, File, EmbedFile, InvocationMeta) exist only as tor parameters; produce a runtime type instead

Must fail at runtime with:

CONTAINS obligation

Flows

flow ~open click a branch to expand · @labels scroll to their anchor
open (path: "data.txt")

Test Configuration

MUST_ERROR