diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 19:49:52 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 19:49:52 -0400 |
| commit | 6d7a359f8f7757b1e23fa7c0feaf535541dcc84a (patch) | |
| tree | 4dfc03e0c2b05306195c3fd645e81796714f30e5 /typecheck.c | |
| parent | 80a09e6dba7042271cba5372e31c2e5e86e58215 (diff) | |
Bugfix some text replacement things
Diffstat (limited to 'typecheck.c')
| -rw-r--r-- | typecheck.c | 3 |
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); |
