diff --git a/compiler/builtins/src/std.rs b/compiler/builtins/src/std.rs index 99498315ec..83c6205ab7 100644 --- a/compiler/builtins/src/std.rs +++ b/compiler/builtins/src/std.rs @@ -414,7 +414,7 @@ pub fn types() -> MutMap { // startsWith : Str, Str -> Bool add_type( Symbol::STR_STARTS_WITH, - SolvedType::Func(vec![str_type(), str_type()], Box::new(bool_type())), + top_level_function(vec![str_type(), str_type()], Box::new(bool_type())), ); // countGraphemes : Str -> Int