mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 23:13:47 +00:00
Do not replace already-recursive lambda sets in occurs checks
If a lambda set appears in an occurs chain but it is itself already recursive, then it is should not be eligibil for modification in the occurs chain. Closes #4725
This commit is contained in:
parent
191d8a7408
commit
87a36e62bf
2 changed files with 26 additions and 1 deletions
|
@ -3609,7 +3609,7 @@ fn check_for_infinite_type(
|
|||
}
|
||||
Content::LambdaSet(subs::LambdaSet {
|
||||
solved,
|
||||
recursion_var: _,
|
||||
recursion_var: OptVariable::NONE,
|
||||
unspecialized,
|
||||
ambient_function: ambient_function_var,
|
||||
}) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue