summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-10-04 14:28:31 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2018-10-08 10:30:53 +0200
commitc209c15c2682f1b4ed5740eb063ce2b10c5c783b (patch)
treed1f082dadbcf6ec61a0a55ee92248b463884bd82
parent837d593e00d1a3ca8a6f2d13fb1514bed7672965 (diff)
downloadvala-c209c15c2682f1b4ed5740eb063ce2b10c5c783b.tar.gz
codegen: Make unreachable error an internal error
This is meant to be caught in ElementAccess.check()
-rw-r--r--codegen/valaccodearraymodule.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/valaccodearraymodule.vala b/codegen/valaccodearraymodule.vala
index 32f42545c..5d611122d 100644
--- a/codegen/valaccodearraymodule.vala
+++ b/codegen/valaccodearraymodule.vala
@@ -172,7 +172,7 @@ public class Vala.CCodeArrayModule : CCodeMethodCallModule {
int dim = int.parse (lit.value);
set_cvalue (expr, get_array_length_cexpression (memberaccess.inner, dim + 1));
} else {
- Report.error (expr.source_reference, "only integer literals supported as index");
+ Report.error (expr.source_reference, "internal error: only integer literals supported as index");
}
} else {
// access to element in an array