mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
![]() When constraining a recursive function like ``` f : _ -> {} f : \_ -> f {} ``` our first step is to solve the value type of `f` relative to its annotation. We have to be careful that the inference variable in the signature of `f` is not generalized until after the body of `f` is solved. Otherwise, we end up admitting polymorphic recursion. |
||
---|---|---|
.. | ||
builtins.rs | ||
expr.rs | ||
lib.rs | ||
module.rs | ||
pattern.rs |