diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-10-04 14:28:31 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-10-08 10:30:53 +0200 |
commit | c209c15c2682f1b4ed5740eb063ce2b10c5c783b (patch) | |
tree | d1f082dadbcf6ec61a0a55ee92248b463884bd82 | |
parent | 837d593e00d1a3ca8a6f2d13fb1514bed7672965 (diff) | |
download | vala-c209c15c2682f1b4ed5740eb063ce2b10c5c783b.tar.gz |
codegen: Make unreachable error an internal error
This is meant to be caught in ElementAccess.check()
-rw-r--r-- | codegen/valaccodearraymodule.vala | 2 |
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 |