mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Don't include DelayedAlias in illegal cycle checks
This commit is contained in:
parent
25ba744cdd
commit
c211ec9790
2 changed files with 19 additions and 0 deletions
|
@ -1482,6 +1482,8 @@ impl Type {
|
|||
Type::Apply(Symbol::LIST_LIST | Symbol::SET_SET, _, _) => false,
|
||||
Type::Apply(..) => internal_error!("cannot chase an Apply!"),
|
||||
Type::Alias { .. } => internal_error!("should be dealiased"),
|
||||
// Must be conservative here because we don't know what the alias expands to yet
|
||||
Type::DelayedAlias(..) => false,
|
||||
// Non-composite types are trivially narrow
|
||||
_ => true,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue