adds Num.bitwiseAnd

This commit is contained in:
Celso Bonutti Filho 2020-12-20 19:55:10 -03:00
parent afd3991bc9
commit 0a24f3b4b4
9 changed files with 54 additions and 1 deletions

View file

@ -253,6 +253,12 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
)
});
// bitwiseAnd : Attr * Int, Attr * Int -> Attr * Int
add_type(Symbol::NUM_BITWISE_AND, {
let_tvars! { star1, star2, star3 };
unique_function(vec![int_type(star1), int_type(star2)], int_type(star3))
});
// divFloat : Float, Float -> Float
add_type(Symbol::NUM_DIV_FLOAT, {
let_tvars! { star1, star2, star3, star4, star5};