mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-31 09:07:21 +00:00
Remove problem storage in Type::Erroneous
This commit is contained in:
parent
b984351514
commit
c9953129cb
9 changed files with 114 additions and 71 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue