Skip to content

Conversation

@zharinov
Copy link
Member

@zharinov zharinov commented Jan 6, 2026

Summary

  • Fix type inference for Q = (Rec) where Rec is a recursive tagged alternation — now correctly infers Q: Rec instead of Void
  • Fix EndEnum effect placement in named nodes with children — effects now execute after children complete, not after matching the parent
  • Fix entrypoint result type resolution for Ref types in bytecode emission

Why

cargo run -p plotnik-cli -- exec -q 'Rec = [...] Q = (Rec)' ... panicked with type verification mismatch: runtime produced tagged union output but type system expected Void. Three interconnected bugs needed fixing to resolve this.

@zharinov zharinov force-pushed the fix/recursive-tagged-alt-type branch from c77923d to 17172fd Compare January 6, 2026 02:22
@zharinov zharinov merged commit 6406393 into master Jan 6, 2026
4 checks passed
@zharinov zharinov deleted the fix/recursive-tagged-alt-type branch January 6, 2026 04:11
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.

2 participants