Merge pull request #4257 from roc-lang/i4246

Correctly check mutual functional recursion between opaque types
This commit is contained in:
Richard Feldman 2022-10-08 16:20:27 -07:00 committed by GitHub
commit 3d5728d82c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 2 deletions

View file

@ -7954,4 +7954,22 @@ mod solve_expr {
"U32 -> U32",
);
}
#[test]
fn issue_4246_admit_recursion_between_opaque_functions() {
infer_eq_without_problem(
indoc!(
r#"
app "test" provides [b] to "./platform"
O := {} -> {}
a = @O \{} -> ((\@O f -> f {}) b)
b = a
"#
),
"O",
);
}
}