221 day22 part1

✗ Failing This test is currently failing.

Failed: frontend

Failure Output

error[PARSE003]: single continuation branch 'outcome' carrying a payload is a one-variant tag union — declare the single output as a bare return instead: `-> <type>`
  --> tests/regression/810_AOC_2015/810_221_day22_part1/input.k:53:1
    |
 53 | pub event fight { line: []const u8 }
    | ^

Code

input.k

Expected output

win hp=2 mana=24
win hp=1 mana=114

Test Configuration

MUST_RUN