Dummy implementation that doesn't do what we want

This commit is contained in:
Joshua Hoeflich 2021-08-14 17:59:53 -05:00
parent b031eb0e54
commit ff2c3d7945
10 changed files with 79 additions and 2 deletions

View file

@ -501,6 +501,14 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
Box::new(float_type(flex(TVAR1))),
);
// TODO: This is obviously wrong! Fix me!
// bytesToU16 : Float a -> Float a
add_top_level_function_type!(
Symbol::NUM_BYTES_TO_U16,
vec![float_type(flex(TVAR1))],
Box::new(float_type(flex(TVAR1))),
);
// Bool module
// and : Bool, Bool -> Bool