Skip to content

Conversation

@steveklabnik
Copy link
Collaborator

The constraint generator was returning Unit type for @syscall instead of i64, causing type mismatch errors when using checked blocks as expressions that return syscall results.

Add syscall to the constraint generator's intrinsic handling to return InferType::Concrete(Type::I64), matching the semantic analysis.

Fixes rue-8qt6

🤖 Generated with Claude Code

@steveklabnik steveklabnik enabled auto-merge January 4, 2026 20:34
The constraint generator was returning Unit type for @syscall instead
of i64, causing type mismatch errors when using checked blocks as
expressions that return syscall results.

Add syscall to the constraint generator's intrinsic handling to return
InferType::Concrete(Type::I64), matching the semantic analysis.

Fixes rue-8qt6

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@steveklabnik steveklabnik force-pushed the steveklabnik/push-rymswyuxxqrm branch from 0c109cc to 305a1a5 Compare January 4, 2026 20:53
@steveklabnik steveklabnik added this pull request to the merge queue Jan 4, 2026
Merged via the queue into rue-language:trunk with commit 7f7a828 Jan 4, 2026
4 checks passed
@steveklabnik steveklabnik deleted the steveklabnik/push-rymswyuxxqrm branch January 4, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant