From b84e7c69ae52155c4902cf24b4f9bb86d65d5f9e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 21 Sep 2025 18:46:28 -0400 Subject: Be more lenient with underscore fields and arguments. --- src/compile/functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compile/functions.c') diff --git a/src/compile/functions.c b/src/compile/functions.c index abe0a588..e3dbc2e7 100644 --- a/src/compile/functions.c +++ b/src/compile/functions.c @@ -155,7 +155,8 @@ Text_t compile_function_call(env_t *env, ast_t *ast) { if (!is_valid_call(env, Match(fn_t, FunctionType)->args, call->args, (call_opts_t){.promotion = true})) { if (is_valid_call(env, Match(fn_t, FunctionType)->args, call->args, (call_opts_t){.promotion = true, .underscores = true})) { - code_err(ast, "You can't pass underscore arguments to this function (those are private)"); + code_err(ast, "You can't pass underscore arguments to this function as positional arguments. You must " + "use keyword arguments."); } else { arg_t *args = NULL; for (arg_ast_t *a = call->args; a; a = a->next) -- cgit v1.2.3