mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
adds Num.subWrap
This commit is contained in:
parent
c6b258c50c
commit
176cdd0274
7 changed files with 23 additions and 2 deletions
|
@ -104,6 +104,12 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
),
|
||||
);
|
||||
|
||||
// subWrap : Int, Int -> Int
|
||||
add_type(
|
||||
Symbol::NUM_SUB_WRAP,
|
||||
top_level_function(vec![int_type(), int_type()], Box::new(int_type())),
|
||||
);
|
||||
|
||||
// mul or (*) : Num a, Num a -> Num a
|
||||
add_type(
|
||||
Symbol::NUM_MUL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue