From 76f80f80ff1788af96ae87fa909c130336d5399b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 22 Sep 2025 00:06:32 -0400 Subject: Fix: support method calls on optional types --- src/environment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/environment.c') diff --git a/src/environment.c b/src/environment.c index 42182eac..c29aa29d 100644 --- a/src/environment.c +++ b/src/environment.c @@ -656,7 +656,7 @@ env_t *for_scope(env_t *env, ast_t *ast) { } env_t *get_namespace_by_type(env_t *env, type_t *t) { - t = value_type(t); + t = non_optional(value_type(t)); switch (t->tag) { case ListType: return NULL; case TableType: return NULL; -- cgit v1.2.3