Remove problem storage in Type::Erroneous

This commit is contained in:
Ayaz Hafiz 2022-11-08 13:19:43 -06:00
parent b984351514
commit c9953129cb
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
9 changed files with 114 additions and 71 deletions

View file

@ -188,6 +188,7 @@ pub enum Problem {
MultipleListRestPattern {
region: Region,
},
BadType(roc_types::types::Problem),
}
impl Problem {
@ -330,6 +331,7 @@ impl Problem {
| Problem::RuntimeError(RuntimeError::ExposedButNotDefined(_))
| Problem::RuntimeError(RuntimeError::NoImplementationNamed { .. })
| Problem::ExposedButNotDefined(_) => None,
Problem::BadType(..) => None,
}
}
}