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:
@@ -1 +1 @@
|
||||
0
|
||||
1
|
||||
|
||||
@@ -1 +1 @@
|
||||
ok (passthrough works) = true
|
||||
/Users/agra/projects/sx/examples/issue-0038.sx:28:48: error: unresolved: 'recv'
|
||||
|
||||
Reference in New Issue
Block a user