diff --git a/src/builtin_functions.cc b/src/builtin_functions.cc index e1b8902..daea7c5 100644 --- a/src/builtin_functions.cc +++ b/src/builtin_functions.cc @@ -366,7 +366,15 @@ static Result builtin_for(Interpreter &i, std::vector args) return Value{}; } - unimplemented(); + return Error { + .details = errors::Unsupported_Types_For { + .type = errors::Unsupported_Types_For::Function, + .name = "for", + .possibilities = { + "(array, callback) -> nil", + }, + }, + }; } void Interpreter::register_builtin_functions()