mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 07:49:17 +03:00
Fix can and load tests
This commit is contained in:
parent
710a10a29c
commit
c708c1ba07
@ -658,7 +658,7 @@ mod test_can {
|
||||
// TAIL CALLS
|
||||
fn get_closure(expr: &Expr, i: usize) -> roc_can::expr::Recursive {
|
||||
match expr {
|
||||
LetRec(assignments, body) => match &assignments.get(i).map(|def| &def.loc_expr.value) {
|
||||
LetRec(assignments, body, _) => match &assignments.get(i).map(|def| &def.loc_expr.value) {
|
||||
Some(Closure(ClosureData {
|
||||
recursive: recursion,
|
||||
..
|
||||
|
@ -272,7 +272,8 @@ mod test_load {
|
||||
&def,
|
||||
&mut expected_types,
|
||||
),
|
||||
DeclareRec(defs) => {
|
||||
DeclareRec(defs, cycle_mark) => {
|
||||
assert!(!cycle_mark.is_illegal(&subs));
|
||||
for def in defs {
|
||||
expect_def(
|
||||
&loaded_module.interns,
|
||||
|
Loading…
Reference in New Issue
Block a user