aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-22 00:06:32 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-22 00:06:32 -0400
commit76f80f80ff1788af96ae87fa909c130336d5399b (patch)
treedde40196bfed0b4c17c186e2801c00a69e67aa0c
parent5824a2ef19879c59866667aced6b3f90e5925648 (diff)
Fix: support method calls on optional types
-rw-r--r--src/environment.c2
1 files changed, 1 insertions, 1 deletions
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;