[vala/0.40] codegen: Make unreachable error an internal error



commit e49243a91620cf3aaa318901c9d15dc28a209ac9
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Oct 4 14:28:31 2018 +0200

    codegen: Make unreachable error an internal error
    
    This is meant to be caught in ElementAccess.check()

 codegen/valaccodearraymodule.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/codegen/valaccodearraymodule.vala b/codegen/valaccodearraymodule.vala
index 4c0679a7e..240d7851f 100644
--- a/codegen/valaccodearraymodule.vala
+++ b/codegen/valaccodearraymodule.vala
@@ -160,7 +160,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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]