mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
add reuse info to normal Tag ir constructor
This commit is contained in:
parent
c4b0a2ec29
commit
463f739c06
8 changed files with 94 additions and 16 deletions
|
@ -134,7 +134,10 @@ fn insert_reset_reuse_operations_stmt<'a, 'i>(
|
|||
tag_layout,
|
||||
tag_id,
|
||||
arguments,
|
||||
reuse,
|
||||
} => {
|
||||
debug_assert!(reuse.is_none());
|
||||
|
||||
// The value of the tag is currently only used in the case of nullable recursive unions.
|
||||
// But for completeness we add every kind of union to the layout_tags.
|
||||
environment.add_symbol_tag(*binding, *tag_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue