subflow variant with continuations

✗ Failing This test is currently failing.

Failed: frontend

Failure Output

error[PARSE003]: single continuation branch 'final' carrying a payload is a one-variant tag union — declare the single output as a bare return instead: `-> <type>`
  --> tests/regression/300_ADVANCED_FEATURES/370_VARIANTS/8215_subflow_variant_with_continuations/input.kz:15:1
    |
 15 | ~event greet { value: i32 }
    | ^

Code

input.kz

Expected output

42

Flows

subflow ~greet click a branch to expand · @labels scroll to their anchor
identity (value)
subflow ~greet click a branch to expand · @labels scroll to their anchor
double (value)
flow ~variants click a branch to expand · @labels scroll to their anchor
variants (source: "input:greet": "two")
flow ~greet click a branch to expand · @labels scroll to their anchor
greet (value: 21)

Test Configuration

MUST_RUN