[vala] Allow casts in constant initializers
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Allow casts in constant initializers
- Date: Mon, 14 Feb 2011 18:52:07 +0000 (UTC)
commit 7e63cd177a517a3685d755d78da1303dab11c06a
Author: Jürg Billeter <j bitron ch>
Date: Mon Feb 14 19:50:36 2011 +0100
Allow casts in constant initializers
vala/valacastexpression.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/vala/valacastexpression.vala b/vala/valacastexpression.vala
index 1b58b25..c3e622b 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<LocalVariable> collection) {
inner.get_used_variables (collection);
}
+
+ public override bool is_constant () {
+ return inner.is_constant ();
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]