mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
int cast
This commit is contained in:
parent
128741e585
commit
43e71f2ee9
6 changed files with 27 additions and 1 deletions
|
@ -360,6 +360,12 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
),
|
||||
);
|
||||
|
||||
// intCast : Int a -> Int b
|
||||
add_type(
|
||||
Symbol::NUM_INT_CAST,
|
||||
top_level_function(vec![int_type(flex(TVAR1))], Box::new(int_type(flex(TVAR2)))),
|
||||
);
|
||||
|
||||
// rem : Int a, Int a -> Result (Int a) [ DivByZero ]*
|
||||
add_type(
|
||||
Symbol::NUM_REM,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue