fix: result holds a num_type

This commit is contained in:
rvcas 2021-12-01 16:25:00 -05:00
parent 3104406956
commit ba9d01773b

View file

@ -711,7 +711,7 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
add_top_level_function_type!(
Symbol::STR_TO_NUM,
vec![str_type()],
Box::new(result_type(flex(TVAR1), invalid_str))
Box::new(result_type(num_type(flex(TVAR1)), invalid_str))
);
// List module