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.
18 lines
1.2 KiB
Plaintext
18 lines
1.2 KiB
Plaintext
error: a closure value cannot be passed as a bare function-pointer `(...) -> ...` — its environment can't be carried across the bare ABI; pass the closure literal directly at the call site, or declare the parameter type as `Closure(...)`
|
|
--> examples/errors/1045-errors-closure-var-bare-slot-reject.sx:23:10
|
|
|
|
|
23 | _ := bare(inc, 9); // reject: closure value → bare slot
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: a closure value cannot be passed as a bare function-pointer `(...) -> ...` — its environment can't be carried across the bare ABI; pass the closure literal directly at the call site, or declare the parameter type as `Closure(...)`
|
|
--> examples/errors/1045-errors-closure-var-bare-slot-reject.sx:24:10
|
|
|
|
|
24 | _ := baref(inc, 9); // reject: also the ∅-widening crossing
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: a closure value cannot be passed as a bare function-pointer `(...) -> ...` — its environment can't be carried across the bare ABI; pass the closure literal directly at the call site, or declare the parameter type as `Closure(...)`
|
|
--> examples/errors/1045-errors-closure-var-bare-slot-reject.sx:25:10
|
|
|
|
|
25 | _ := bare(add, 9); // reject: capturing closure → bare slot
|
|
| ^^^^^^^^^^^^
|