diff options
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); |
