Remove castToNat

This commit is contained in:
Joshua Hoeflich 2021-08-19 16:04:20 -05:00
parent 0bebb64bae
commit b57ebb6229
8 changed files with 2 additions and 22 deletions

View file

@ -501,13 +501,6 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
Box::new(float_type(flex(TVAR1))),
);
// castToNat : Num a -> Nat
add_top_level_function_type!(
Symbol::NUM_CAST_TO_NAT,
vec![int_type(flex(TVAR1))],
Box::new(nat_type()),
);
// bytesToU16 : List U8, Nat -> Result U16 [ OutOfBounds ]
{
let position_out_of_bounds = SolvedType::TagUnion(