From e22fc67de035d4f998758ffcbb99515f47a8375a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 29 Nov 2025 11:20:15 -0500 Subject: Bugfix for default CLI argument initialization --- src/compile/cli.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/compile/cli.c b/src/compile/cli.c index 7cd3cc7c..a66fb47d 100644 --- a/src/compile/cli.c +++ b/src/compile/cli.c @@ -167,7 +167,6 @@ Text_t compile_cli_arg_call(env_t *env, ast_t *ast, Text_t fn_name, type_t *fn_t Text_t default_val; if (arg->type) { default_val = compile_to_type(env, arg->default_val, arg->type); - if (arg->type->tag != OptionalType) default_val = promote_to_optional(arg->type, default_val); } else { default_val = compile(env, arg->default_val); } -- cgit v1.2.3