[vala] Support taking address of generic variables
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Support taking address of generic variables
- Date: Tue, 21 Jul 2009 12:23:50 +0000 (UTC)
commit 60ac7e30c7fa108537eeae51a1bb8a144c80f176
Author: Didier 'Ptitjes <ptitjes free fr>
Date: Tue Jul 21 10:11:57 2009 +0200
Support taking address of generic variables
Fixes bug 589236.
Signed-off-by: Didier 'Ptitjes <ptitjes free fr>
vala/valaaddressofexpression.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vala/valaaddressofexpression.vala b/vala/valaaddressofexpression.vala
index 4874a2b..2859a2c 100644
--- a/vala/valaaddressofexpression.vala
+++ b/vala/valaaddressofexpression.vala
@@ -83,7 +83,8 @@ public class Vala.AddressofExpression : Expression {
}
if (!(inner.value_type is ValueType
|| inner.value_type is ObjectType
- || inner.value_type is PointerType)) {
+ || inner.value_type is PointerType
+ || inner.value_type is GenericType)) {
error = true;
Report.error (source_reference, "Address-of operator not supported for this expression");
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]