mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
remove a wrapped
This commit is contained in:
parent
1c8a21e42c
commit
95c952a1ae
2 changed files with 11 additions and 6 deletions
|
@ -171,6 +171,16 @@ impl<'a> UnionLayout<'a> {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn stores_tag(&self) -> bool {
|
||||
match self {
|
||||
UnionLayout::NonRecursive(_) => true,
|
||||
UnionLayout::Recursive(_) => true,
|
||||
UnionLayout::NonNullableUnwrapped(_) => false,
|
||||
UnionLayout::NullableWrapped { .. } => true,
|
||||
UnionLayout::NullableUnwrapped { .. } => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue