aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-05 10:51:07 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-05 10:51:07 -0400
commit53f5178f711c7795b0bffca0a0b835333c7c8df5 (patch)
tree858f3799cdcb942d7ad7e2e140f12331bc21fa97 /src
parentc9198cb4807931096f6fcc310e567c27923ecccf (diff)
Remove {} for empty sets
Diffstat (limited to 'src')
-rw-r--r--src/compile.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compile.c b/src/compile.c
index 688901ac..8658c057 100644
--- a/src/compile.c
+++ b/src/compile.c
@@ -2010,10 +2010,6 @@ CORD compile_to_type(env_t *env, ast_t *ast, type_t *t)
return compile_typed_table(env, ast, t);
} else if (t->tag == SetType && ast->tag == Set) {
return compile_typed_set(env, ast, t);
- } else if (t->tag == SetType && ast->tag == Table) {
- auto table = Match(ast, Table);
- if (!table->default_value && !table->fallback && !table->entries)
- return compile_to_type(env, WrapAST(ast, Set), t);
}
type_t *actual = get_type(env, ast);