131 scope exit ambiguity names the arm

✗ 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/330_PHANTOM_TYPES/330_131_scope_exit_ambiguity_names_the_arm/fs2.kz:9:1
  hint: capture kinds (Expression, Source, File, EmbedFile, InvocationMeta) exist only as tor parameters; produce a runtime type instead

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/330_PHANTOM_TYPES/330_131_scope_exit_ambiguity_names_the_arm/fs2.kz:18:1
  hint: capture kinds (Expression, Source, File, EmbedFile, InvocationMeta) exist only as tor parameters; produce a runtime type instead

Code

input.k

Supporting Files

fs2.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/330_PHANTOM_TYPES/330_131_scope_exit_ambiguity_names_the_arm/fs2.kz:9:1
  hint: capture kinds (Expression, Source, File, EmbedFile, InvocationMeta) exist only as tor parameters; produce a runtime type instead

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/330_PHANTOM_TYPES/330_131_scope_exit_ambiguity_names_the_arm/fs2.kz:18:1
  hint: capture kinds (Expression, Source, File, EmbedFile, InvocationMeta) exist only as tor parameters; produce a runtime type instead

Must contain:

has multiple discharge options: force-close, unlock

Flows

flow ~for click a branch to expand · @labels scroll to their anchor
for (0..3)

Test Configuration

MUST_ERROR