mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Remove Cells from Types
This commit is contained in:
parent
f4fcb9f421
commit
b30e8fc9b2
5 changed files with 89 additions and 117 deletions
|
@ -769,7 +769,7 @@ pub fn constrain_pattern(
|
|||
fn could_be_a_tag_union(types: &Types, typ: TypeOrVar) -> bool {
|
||||
match typ.split() {
|
||||
Ok(typ_index) => !matches!(
|
||||
types[typ_index].get(),
|
||||
types[typ_index],
|
||||
TypeTag::Apply { .. } | TypeTag::Function(..) | TypeTag::Record(..)
|
||||
),
|
||||
Err(_) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue