Implemented generated built in int division, with the return type as a result

This commit is contained in:
Chad Stearns 2020-04-29 17:36:02 -04:00
parent 357cd3bd70
commit 9107880928
6 changed files with 119 additions and 6 deletions

View file

@ -342,6 +342,12 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
// Int module
// equals : Int, Int -> Bool
add_type(
Symbol::INT_EQ_I64,
unique_function(vec![int_type(UVAR1), int_type(UVAR2)], bool_type(UVAR3)),
);
// highest : Int
add_type(Symbol::INT_HIGHEST, int_type(UVAR1));