Register types for Num.pow

This commit is contained in:
Dimitar Apostolov 2020-09-11 14:39:25 +02:00
parent ad0a214dbf
commit d0864608fd
3 changed files with 27 additions and 0 deletions

View file

@ -448,6 +448,15 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
unique_function(vec![num_type(star1, a)], bool_type(star2))
});
// pow : Float, Float -> Float
add_type(Symbol::NUM_POW, {
let_tvars! { star1, star2, star3 };
unique_function(
vec![float_type(star1), float_type(star2)],
float_type(star3),
)
});
// Bool module
// isEq or (==) : Attr * a, Attr * a -> Attr * Bool