aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 95b9ba1b..d4f8d4ab 100644
--- a/compile.c
+++ b/compile.c
@@ -3700,6 +3700,8 @@ CORD compile(env_t *env, ast_t *ast)
} else {
code_err(indexing->index, "This table doesn't have a value type or a default value");
}
+ } else if (container_t->tag == TextType) {
+ return CORD_all("Text$cluster(", compile_to_pointer_depth(env, indexing->indexed, 0, false), ", ", compile_to_type(env, indexing->index, Type(BigIntType)), ")");
} else {
code_err(ast, "Indexing is not supported for type: %T", container_t);
}