From: Didier 'Ptitjes Date: Tue, 21 Jul 2009 08:11:57 +0000 (+0200) Subject: Support taking address of generic variables X-Git-Tag: 0.7.5~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60ac7e30c7fa108537eeae51a1bb8a144c80f176;p=thirdparty%2Fvala.git Support taking address of generic variables Fixes bug 589236. Signed-off-by: Didier 'Ptitjes --- diff --git a/vala/valaaddressofexpression.vala b/vala/valaaddressofexpression.vala index 4874a2b0a..2859a2c39 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;