006 err branch leaks opened resource

✗ Failing This test is currently failing.

Failed: frontend

Failure Output

Showing last 10 of 11 lines
  --> /Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_006_err_branch_leaks_opened_resource/db.kz:20:1
    |
 20 | ~pub event connect { url: []const u8 }
    | ^

error[PARSE003]: single continuation branch 'started' carrying a payload is a one-variant tag union — declare the single output as a bare return instead: `-> <type>`
  --> /Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_006_err_branch_leaks_opened_resource/db.kz:34:1
    |
 34 | ~pub event query { conn: *Connection<connected>, sql: []const u8 }
    | ^

Code

input.kz

Must contain:

was not discharged

Error Verification

Actual Compiler Output

error[PARSE003]: single continuation branch 'connected' carrying a payload is a one-variant tag union — declare the single output as a bare return instead: `-> <type>`
  --> /Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_006_err_branch_leaks_opened_resource/db.kz:20:1
    |
 20 | ~pub event connect { url: []const u8 }
    | ^

error[PARSE003]: single continuation branch 'started' carrying a payload is a one-variant tag union — declare the single output as a bare return instead: `-> <type>`
  --> /Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_006_err_branch_leaks_opened_resource/db.kz:34:1
    |
 34 | ~pub event query { conn: *Connection<connected>, sql: []const u8 }
    | ^

Flows

flow ~connect click a branch to expand · @labels scroll to their anchor
connect (url: "postgres://localhost/test")

Imported Files

db.kz

Test Configuration

MUST_FAIL