mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
use opt var in cycle marks
This commit is contained in:
parent
d26f6f600f
commit
69e7d0a378
3 changed files with 23 additions and 18 deletions
|
@ -814,10 +814,7 @@ pub(crate) fn sort_can_defs(
|
|||
debug_assert!(!is_specialization, "Self-recursive specializations can only be determined during solving - but it was determined for {:?} now, that's a bug!", def);
|
||||
|
||||
// this function calls itself, and must be typechecked as a recursive def
|
||||
Declaration::DeclareRec(
|
||||
vec![mark_def_recursive(def)],
|
||||
IllegalCycleMark::new(var_store),
|
||||
)
|
||||
Declaration::DeclareRec(vec![mark_def_recursive(def)], IllegalCycleMark::empty())
|
||||
} else {
|
||||
Declaration::Declare(def)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue