mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
make FlatType Copy
This commit is contained in:
parent
41e56519ef
commit
29bf4195a1
3 changed files with 41 additions and 10 deletions
|
@ -1091,7 +1091,8 @@ fn type_to_variable<'a>(
|
|||
result
|
||||
}
|
||||
Erroneous(problem) => {
|
||||
let content = Content::Structure(FlatType::Erroneous(Box::new(problem.clone())));
|
||||
let problem_index = SubsIndex::push_new(&mut subs.problems, problem.clone());
|
||||
let content = Content::Structure(FlatType::Erroneous(problem_index));
|
||||
|
||||
register(subs, rank, pools, content)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue