builtin maxI128 initial

This commit is contained in:
Eric Henry 2021-03-09 12:47:42 -05:00
parent c2525d2407
commit 4d046abefa
11 changed files with 73 additions and 17 deletions

View file

@ -3,8 +3,8 @@ use roc_module::ident::TagName;
use roc_module::symbol::Symbol;
use roc_region::all::Region;
use roc_types::builtin_aliases::{
bool_type, dict_type, float_type, int_type, list_type, nat_type, num_type, ordering_type,
result_type, set_type, str_type, str_utf8_byte_problem_type, u64_type, u8_type,
bool_type, dict_type, float_type, i128_type, int_type, list_type, nat_type, num_type,
ordering_type, result_type, set_type, str_type, str_utf8_byte_problem_type, u64_type, u8_type,
};
use roc_types::solved_types::SolvedType;
use roc_types::subs::VarId;
@ -384,6 +384,10 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
),
);
// maxI128 : I128
add_type(Symbol::NUM_MAX_I128, i128_type());
//add_type(Symbol::NUM_MAX_I128, int_type(flex(TVAR1)));
// Float module
// div : Float a, Float a -> Float a