mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
box errors in flat type
This commit is contained in:
parent
9581195c1b
commit
06f07700d4
4 changed files with 5 additions and 5 deletions
|
@ -465,7 +465,7 @@ impl SolvedType {
|
|||
}
|
||||
EmptyRecord => SolvedType::EmptyRecord,
|
||||
EmptyTagUnion => SolvedType::EmptyTagUnion,
|
||||
Erroneous(problem) => SolvedType::Erroneous(problem.clone()),
|
||||
Erroneous(problem) => SolvedType::Erroneous(*problem.clone()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -627,7 +627,7 @@ pub enum FlatType {
|
|||
TagUnion(MutMap<TagName, Vec<Variable>>, Variable),
|
||||
FunctionOrTagUnion(TagName, Symbol, Variable),
|
||||
RecursiveTagUnion(Variable, MutMap<TagName, Vec<Variable>>, Variable),
|
||||
Erroneous(Problem),
|
||||
Erroneous(Box<Problem>),
|
||||
EmptyRecord,
|
||||
EmptyTagUnion,
|
||||
}
|
||||
|
@ -1242,7 +1242,7 @@ fn flat_type_to_err_type(
|
|||
}
|
||||
|
||||
Erroneous(problem) => {
|
||||
state.problems.push(problem);
|
||||
state.problems.push(*problem);
|
||||
|
||||
ErrorType::Error
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue