Fixed Str.split definition in std

This commit is contained in:
Chad Stearns 2020-10-18 21:11:10 -04:00
parent a11f0ec25a
commit c0e5c295b6

View file

@ -496,7 +496,7 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
// Str.split : Str, Str -> List Str
add_type(
Symbol::STR_SPLIT,
SolvedType::Func(
top_level_function(
vec![str_type(), str_type()],
Box::new(list_type(str_type())),
),