mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
don't send RecursionVar as FlexVar; use the structure var instead
This commit is contained in:
parent
1c9cc6bc9b
commit
86ebad4d95
1 changed files with 4 additions and 1 deletions
|
@ -371,7 +371,10 @@ impl SolvedType {
|
|||
|
||||
match subs.get_without_compacting(var).content {
|
||||
FlexVar(_) => SolvedType::Flex(VarId::from_var(var, subs)),
|
||||
RecursionVar { .. } => SolvedType::Flex(VarId::from_var(var, subs)),
|
||||
RecursionVar { structure, .. } => {
|
||||
// TODO should there be a SolvedType RecursionVar variant?
|
||||
Self::from_var_help(subs, recursion_vars, structure)
|
||||
}
|
||||
RigidVar(name) => SolvedType::Rigid(name),
|
||||
Structure(flat_type) => Self::from_flat_type(subs, recursion_vars, flat_type),
|
||||
Alias(symbol, args, actual_var) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue