mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
make occurs return Result to use the ? operator
This commit is contained in:
parent
ad3d006a11
commit
7a44572ebc
4 changed files with 13 additions and 12 deletions
|
@ -863,7 +863,7 @@ fn check_for_infinite_type(
|
|||
) {
|
||||
let var = loc_var.value;
|
||||
|
||||
while let Some((recursive, _chain)) = subs.occurs(var) {
|
||||
while let Err((recursive, _chain)) = subs.occurs(var) {
|
||||
let description = subs.get(recursive);
|
||||
let content = description.content;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue