diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-08 21:55:15 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-08 21:55:15 -0400 |
| commit | a4fff5cb49b25aca4c889ec312ddf4c6c530c69b (patch) | |
| tree | 0ba91f8fcc500383db55fdde1012c19b4d703cb9 /compile.c | |
| parent | eb47f61450349b1be4e72ffe6f36273a1d01a428 (diff) | |
Bugfix for default arguments not supporting enclosing types
Diffstat (limited to 'compile.c')
| -rw-r--r-- | compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1399,7 +1399,7 @@ CORD compile_arguments(env_t *env, ast_t *call_ast, arg_t *spec_args, arg_ast_t { Table_t used_args = {}; CORD code = CORD_EMPTY; - env_t *default_scope = global_scope(env); + env_t *default_scope = namespace_scope(env); for (arg_t *spec_arg = spec_args; spec_arg; spec_arg = spec_arg->next) { int64_t i = 1; // Find keyword: @@ -1935,6 +1935,7 @@ CORD compile(env_t *env, ast_t *ast) CORD code = "({\n"; deferral_t *prev_deferred = env->deferred; env = fresh_scope(env); + printf("Prebinding block\n"); for (ast_list_t *stmt = stmts; stmt; stmt = stmt->next) prebind_statement(env, stmt->ast); for (ast_list_t *stmt = stmts; stmt; stmt = stmt->next) { |
