roc/crates/compiler/solve
Ayaz Hafiz a0461679dd Restrict usages of type variables in non-generalized contexts
Type variables can only be used on functions (and in number literals as
a carve-out for now). In all other cases, a type variable takes on a
single, concrete type based on later usages. This check emits errors
when this is violated.

The implementation is to check the rank of a variable after it could be
generalized. If the variable is not generalized but annotated as a type
variable, emit an error.
2025-01-02 14:26:37 -06:00
..
docs Update stale document references 2024-06-26 02:16:20 -04:00
src Restrict usages of type variables in non-generalized contexts 2025-01-02 14:26:37 -06:00
tests add List.splitAt 2024-11-09 17:16:21 -06:00
Cargo.toml update to workspace deps for miscellaneous 2024-11-29 11:37:39 +11:00