✓
Passing Passing: the compiler rejects this program as expected.
Code
// PINS: Flow.location on the `name =` + next-line-invocation subflow path
// names the head invocation's own line. The transform refusal (regex match
// takes an input argument) rides flow.location.
import std/io
import std/regex
pub tor tick { n: i64 }
tick =
std/regex:match
tick(n: 1)
Actual compiler output
error[KORU162]: std/regex:match requires an input argument: match(<expression>)
--> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_258_subflow_nextline_invocation_caret/input.k:10:4Backend must reject with:
CONTAINS error[KORU162]
CONTAINS requires an input argument
ERROR_AT 10Flows
subflow ~tick click a branch to expand · @labels scroll to their anchor
match
flow ~tick click a branch to expand · @labels scroll to their anchor
tick (n: 1)
Test Configuration
MUST_ERROR