]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Allow casts in constant initializers
authorJürg Billeter <j@bitron.ch>
Mon, 14 Feb 2011 18:50:36 +0000 (19:50 +0100)
committerJürg Billeter <j@bitron.ch>
Mon, 14 Feb 2011 18:50:36 +0000 (19:50 +0100)
vala/valacastexpression.vala

index 1b58b2572d266f38a26eef50b68c3ff83bece7d2..c3e622b1c5f8bfe1a57ffb597517389147509ef7 100644 (file)
@@ -1,6 +1,6 @@
 /* valacastexpression.vala
  *
- * Copyright (C) 2006-2010  Jürg Billeter
+ * Copyright (C) 2006-2011  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -164,4 +164,8 @@ public class Vala.CastExpression : Expression {
        public override void get_used_variables (Collection<LocalVariable> collection) {
                inner.get_used_variables (collection);
        }
+
+       public override bool is_constant () {
+               return inner.is_constant ();
+       }
 }