aboutsummaryrefslogtreecommitdiff
path: root/typecheck.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-03 12:20:53 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-03 12:20:53 -0500
commit078b4431854895c64d9b55bc3e1a9122cc911f48 (patch)
treeaead6d835d0b9227059dd90bc2c626003e807ea9 /typecheck.c
parentd905fa4888876eddc7716e88ffa158ed657bcf37 (diff)
Add a `repeat` keyword
Diffstat (limited to 'typecheck.c')
-rw-r--r--typecheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/typecheck.c b/typecheck.c
index bff7d080..7cc081de 100644
--- a/typecheck.c
+++ b/typecheck.c
@@ -1229,7 +1229,7 @@ type_t *get_type(env_t *env, ast_t *ast)
}
}
- case While: case For: return Type(VoidType);
+ case While: case Repeat: case For: return Type(VoidType);
case InlineCCode: {
auto inline_code = Match(ast, InlineCCode);
if (inline_code->type)