mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-23 14:35:12 +00:00
Fix errors
This commit is contained in:
parent
da421068f1
commit
703ef6608e
8 changed files with 167 additions and 20 deletions
|
@ -653,9 +653,11 @@ impl RuntimeError {
|
|||
| RuntimeError::DegenerateBranch(region)
|
||||
| RuntimeError::InvalidInterpolation(region)
|
||||
| RuntimeError::InvalidHexadecimal(region)
|
||||
| RuntimeError::MultipleRecordBuilders(region)
|
||||
| RuntimeError::UnappliedRecordBuilder(region)
|
||||
| RuntimeError::InvalidUnicodeCodePt(region) => *region,
|
||||
RuntimeError::UnresolvedTypeVar | RuntimeError::ErroneousType => Region::zero(),
|
||||
RuntimeError::LookupNotInScope(ident, _) => ident.region,
|
||||
RuntimeError::LookupNotInScope { loc_name, .. } => loc_name.region,
|
||||
RuntimeError::OpaqueNotDefined { usage, .. } => usage.region,
|
||||
RuntimeError::OpaqueNotApplied(ident) => ident.region,
|
||||
RuntimeError::CircularDef(cycle) => cycle[0].symbol_region,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue