mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Code gen numeric comparisons
This commit is contained in:
parent
d751327914
commit
c39b43a265
6 changed files with 197 additions and 13 deletions
|
@ -309,7 +309,7 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
|
||||
// isLte or (<=) : Num a, Num a -> Bool
|
||||
add_type(
|
||||
Symbol::NUM_LE,
|
||||
Symbol::NUM_LTE,
|
||||
unique_function(
|
||||
vec![num_type(UVAR1, TVAR1), num_type(UVAR2, TVAR1)],
|
||||
bool_type(UVAR3),
|
||||
|
@ -327,7 +327,7 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
|
||||
// isGte or (>=) : Num a, Num a -> Bool
|
||||
add_type(
|
||||
Symbol::NUM_GE,
|
||||
Symbol::NUM_GTE,
|
||||
unique_function(
|
||||
vec![num_type(UVAR1, TVAR1), num_type(UVAR2, TVAR1)],
|
||||
bool_type(UVAR3),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue