From: Jürg Billeter Date: Mon, 14 Feb 2011 18:50:36 +0000 (+0100) Subject: Allow casts in constant initializers X-Git-Tag: 0.11.6~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e63cd177a517a3685d755d78da1303dab11c06a;p=thirdparty%2Fvala.git Allow casts in constant initializers --- diff --git a/vala/valacastexpression.vala b/vala/valacastexpression.vala index 1b58b2572..c3e622b1c 100644 --- a/vala/valacastexpression.vala +++ b/vala/valacastexpression.vala @@ -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 collection) { inner.get_used_variables (collection); } + + public override bool is_constant () { + return inner.is_constant (); + } }