mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
adds Num.bitwiseAnd
This commit is contained in:
parent
afd3991bc9
commit
0a24f3b4b4
9 changed files with 54 additions and 1 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue