aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-05-27 16:35:15 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-05-27 16:35:15 -0400
commitf11b46d660229ed9e7c7c0c325553913af642d1f (patch)
treeb15867cec893ddd3b11f7cfaedc8927f50e9136b /compile.c
parent4930c22acac2cebf7e51662fb50e7b36b4c7274e (diff)
Add file prefix to lambda types
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index d67715c0..da48521a 100644
--- a/compile.c
+++ b/compile.c
@@ -1501,7 +1501,7 @@ CORD compile(env_t *env, ast_t *ast)
case Lambda: {
auto lambda = Match(ast, Lambda);
static int64_t lambda_number = 1;
- CORD name = CORD_asprintf("lambda$%ld", lambda_number++);
+ CORD name = CORD_asprintf("%slambda$%ld", env->file_prefix, lambda_number++);
env_t *body_scope = fresh_scope(env);
for (arg_ast_t *arg = lambda->args; arg; arg = arg->next) {