This commit is contained in:
Chad Stearns 2020-05-09 17:56:10 -04:00
parent 41af22a2ac
commit 1d1f620090
7 changed files with 80 additions and 7 deletions

View file

@ -273,6 +273,12 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
// Int module
// isLt or (<) : Num a, Num a -> Bool
add_type(
Symbol::INT_LT,
SolvedType::Func(vec![int_type(), int_type()], Box::new(bool_type())),
);
// equals : Int, Int -> Bool
add_type(
Symbol::INT_EQ_I64,