summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 2384661..1e23c29 100644
--- a/eval.c
+++ b/eval.c
@@ -58,6 +58,9 @@ static bool eval_expr_as_int(Expression *e, Integer *i) {
case BINARY_SET:
err_print(e->where, "Expected operator which returns an integer, but got %s", binary_op_to_str(e->binary.op));
return false;
+ case BINARY_AT_INDEX:
+ err_print(e->where, "Cannot get index of array at compile time yet.");
+ return false;
}
} break;
case EXPR_IDENT: {