aboutsummaryrefslogtreecommitdiff
path: root/src/parse/types.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-11 15:31:38 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-11 15:31:38 -0400
commit7e8604daeb9239e1669c5414dd6caa37af30c4ff (patch)
tree8fcab61a296381280902a3fc7b2d8456e2a9b227 /src/parse/types.c
parent25fa8ace21f0f6874f5b3ad1248e0e5d21190c84 (diff)
Make `{a,b,c}` shorthand for `{a:Empty(), b:Empty(), c:Empty()}` and
display it that way. Same for type annotations.
Diffstat (limited to 'src/parse/types.c')
-rw-r--r--src/parse/types.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/parse/types.c b/src/parse/types.c
index 192103dc..8ecc602e 100644
--- a/src/parse/types.c
+++ b/src/parse/types.c
@@ -27,8 +27,6 @@ type_ast_t *parse_table_type(parse_ctx_t *ctx, const char *pos) {
type_ast_t *value_type = NULL;
if (match(&pos, ":")) {
value_type = expect(ctx, start, &pos, parse_type, "I couldn't parse the rest of this table type");
- } else {
- return NULL;
}
spaces(&pos);
ast_t *default_value = NULL;