mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-15 21:23:57 +00:00
Freshly instantiate nested recursion variables under an opaque type
This commit is contained in:
parent
3d6353dbd2
commit
d3ab9ab926
3 changed files with 24 additions and 15 deletions
|
|
@ -2316,7 +2316,7 @@ impl Type {
|
|||
RecursiveTagUnion(rec, tags, ext) => {
|
||||
if let Some(replacement) = substitutions.get(rec) {
|
||||
let new_rec_var = match replacement {
|
||||
Type::Variable(v) => v.clone(),
|
||||
Type::Variable(v) => *v,
|
||||
_ => panic!("Recursion var substitution must be a variable"),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue