aboutsummaryrefslogtreecommitdiff
path: root/src/compile/lists.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-21 15:46:05 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-21 15:46:05 -0400
commit9397bba55cfacc2ddaa59f84c01ce3d4e38e2232 (patch)
tree30a3e06b762e355b1978c9a3448cb37262a4c58d /src/compile/lists.c
parent71f73d8b3ce63f9a3685bc1a1686ef4fab3294a6 (diff)
Bugfix for .unique()
Diffstat (limited to 'src/compile/lists.c')
-rw-r--r--src/compile/lists.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/lists.c b/src/compile/lists.c
index 4fe83d16..e3aa951b 100644
--- a/src/compile/lists.c
+++ b/src/compile/lists.c
@@ -253,7 +253,7 @@ Text_t compile_list_method_call(env_t *env, ast_t *ast) {
} else if (streq(call->name, "unique")) {
self = compile_to_pointer_depth(env, call->self, 0, false);
(void)compile_arguments(env, ast, NULL, call->args);
- return Texts("Table$from_entries(", self, ", Table$info(", compile_type_info(item_t), ", &Void$info)).items");
+ return Texts("Table$from_entries(", self, ", Table$info(", compile_type_info(item_t), ", &Void$info)).entries");
} else if (streq(call->name, "pop")) {
EXPECT_POINTER();
arg_t *arg_spec = new (arg_t, .name = "index", .type = INT_TYPE, .default_val = FakeAST(Int, "-1"));