Files
sx/examples/diagnostics/expected/1167-diagnostics-call-arity-mismatch.stderr
agra 66bdc70bf1 test: group examples into per-category folders
Move examples/*.sx and their expected/ snapshots into per-category
subfolders (examples/<category>/...). Folder = leading filename token,
with ffi-objc/ffi-jni kept whole; filenames are unchanged. The corpus
runner and LSP sweep now discover each category's expected/ dir, while
issues/ stays flat. Example 1058's repo-root-relative companion import
is made file-relative. Path strings embedded in 164 snapshots were
regenerated (path-only changes). Test-layout docs in CLAUDE.md updated.
2026-06-21 14:41:34 +03:00

30 lines
1.1 KiB
Plaintext

error: 'add2' expects 2 arguments, but 3 were given
--> examples/diagnostics/1167-diagnostics-call-arity-mismatch.sx:19:9
|
19 | _ = add2(1, 2, 3); // plain bare call, too many
| ^^^^
error: 'add2' expects 2 arguments, but 1 was given
--> examples/diagnostics/1167-diagnostics-call-arity-mismatch.sx:20:9
|
20 | _ = add2(1); // plain bare call, too few
| ^^^^
error: 'concat' expects 2 arguments, but 3 were given
--> examples/diagnostics/1167-diagnostics-call-arity-mismatch.sx:21:9
|
21 | _ = concat("a", "b", "c"); // flat-imported stdlib fn, too many
| ^^^^^^
error: 'Point.scaled' expects 1 argument, but 2 were given
--> examples/diagnostics/1167-diagnostics-call-arity-mismatch.sx:23:9
|
23 | _ = p.scaled(2, 9); // method dot-call, too many
| ^^^^^^^^
error: 'bump' expects 1 argument, but 2 were given
--> examples/diagnostics/1167-diagnostics-call-arity-mismatch.sx:24:9
|
24 | _ = p.bump(1, 2); // ufcs dot-call, too many
| ^^^^^^