✓
Passing Passing: the compiler rejects this program as expected.
Code
// Pins: a call whose '(' does not hug its first argument is a parse
// refusal — 'adx( 7, ...' is C-style spacing, not Koru. The ')' edge is
// refused by the same rule.
import std/io
tor adx { qlen: i32, dx: i32 } -> i32
adx -> qlen + dx
use = adx( 7, dx: 3): m
|> std/io:print.ln("{{ m:d }}")
Actual compiler output
error[PARSE003]: call parens hug their arguments — write 'f(x)', not 'f( x' or 'f(x )'
--> tests/regression/100_PARSER/100_090_call_parens_hug_args/input.k:10:1
|
10 | |> std/io:print.ln("{{ m:d }}")
| ^Frontend must reject with:
CONTAINS call parens hug their argumentsTest Configuration
MUST_ERROR