aboutsummaryrefslogtreecommitdiff
path: root/typecheck.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-02 19:49:52 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-02 19:49:52 -0400
commit6d7a359f8f7757b1e23fa7c0feaf535541dcc84a (patch)
tree4dfc03e0c2b05306195c3fd645e81796714f30e5 /typecheck.c
parent80a09e6dba7042271cba5372e31c2e5e86e58215 (diff)
Bugfix some text replacement things
Diffstat (limited to 'typecheck.c')
-rw-r--r--typecheck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/typecheck.c b/typecheck.c
index 4d4c080e..27e20b04 100644
--- a/typecheck.c
+++ b/typecheck.c
@@ -1377,7 +1377,8 @@ bool is_constant(env_t *env, ast_t *ast)
}
case TextJoin: {
auto text = Match(ast, TextJoin);
- return !text->children || !text->children->next;
+ // TODO: support short literal strings
+ return !text->children;
}
case Not: return is_constant(env, Match(ast, Not)->value);
case Negative: return is_constant(env, Match(ast, Negative)->value);