mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Support nullable wrapped tag union layouts in REPL
This commit is contained in:
parent
cdcc31f199
commit
d966d8921f
3 changed files with 108 additions and 4 deletions
|
@ -361,7 +361,7 @@ impl<'a> UnionLayout<'a> {
|
|||
}
|
||||
|
||||
fn stores_tag_id_in_pointer_bits(tags: &[&[Layout<'a>]], ptr_bytes: u32) -> bool {
|
||||
tags.len() <= ptr_bytes as usize
|
||||
tags.len() < ptr_bytes as usize
|
||||
}
|
||||
|
||||
// i.e. it is not implicit and not stored in the pointer bits
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue