019 fold missing as

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Actual compiler output

error[KORU184]: std/tree:fold takes the result type — fold(t, as: i64): there is no inference to recover T from the arm expressions
  --> tests/regression/600_STDLIB/682_TREE/682_019_fold_missing_as/input.k:13:1

Must contain:

KORU184

Flows

flow ~node click a branch to expand · @labels scroll to their anchor
node (Node, source: item: i64, left: ?Node)
subflow ~mk click a branch to expand · @labels scroll to their anchor
if (true)
flow ~mk click a branch to expand · @labels scroll to their anchor
mk

Test Configuration

MUST_ERROR