roc/crates/compiler/solve/tests
Ayaz Hafiz d9863cbbaa
Correctly check mutual functional recursion between opaque types
The mutual-recursion checks does not admit types that are not function
types; because Roc is strict, only functional values can be involved in
mutual recursion. However, this check was exercised by checking the head
constructor of a type, which is not the correct way to do it. Aliases
and opaque types may in fact be function types as well, so we must chase
their actual contents.

Closes #4246
2022-10-08 10:09:55 -05:00
..
helpers
solve_expr.rs Correctly check mutual functional recursion between opaque types 2022-10-08 10:09:55 -05:00