Skip to content

Conversation

@lukewilliamboswell
Copy link
Collaborator

Fixes #8754

  1. src/layout/store.zig - Core fix: When processing a nominal type whose backing type is already cached (due to processing the same nominal with a different type variable), immediately update the placeholder layout instead of leaving it as Box(opaque_ptr).
  2. src/repl/eval.zig - REPL improvement: Added storage for type declarations so multi-line REPL sessions with type definitions work correctly.
  3. test/snapshots/repl/recursive_direct_variant.md - Added REPL snapshot test for the bug case.

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.

Crash with direct recursive reference in tag union variant

2 participants