mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Remove castToNat
This commit is contained in:
parent
0bebb64bae
commit
b57ebb6229
8 changed files with 2 additions and 22 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue