mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
fix: result holds a num_type
This commit is contained in:
parent
3104406956
commit
ba9d01773b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue