issue-0038: xfail repro — recv capture inside #objc_call

Uncomments the second passthrough case in `examples/issue-0038.sx`
that captures `recv` from the enclosing function into a closure body
that uses it inside `#objc_call(s64)(recv, "hash")`. Current behavior
is a hard error from the name-resolution pass:

    examples/issue-0038.sx:28:48: error: unresolved: 'recv'

Snapshot locks the failure in (exit 1 + that error message) so the
next commit can flip it to passing without ambiguity. Per the FFI
cadence rule this is a test-add (xfail); the make-green follow-up
adds the missing recursion arm in `lower.zig`'s `collectCaptures` for
`.ffi_intrinsic_call` nodes.
This commit is contained in:
agra
2026-05-19 21:10:58 +03:00
parent 56f6ae3681
commit 35359b88f8
3 changed files with 13 additions and 7 deletions

View File

@@ -1 +1 @@
0
1

View File

@@ -1 +1 @@
ok (passthrough works) = true
/Users/agra/projects/sx/examples/issue-0038.sx:28:48: error: unresolved: 'recv'