2008-03-18 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: support taking address of pointer
svn path=/trunk/; revision=1137
+2008-03-18 Jürg Billeter <j@bitron.ch>
+
+ * vala/valasemanticanalyzer.vala: support taking address of pointer
+
2008-03-17 Jürg Billeter <j@bitron.ch>
* vapi/packages/gtk+-2.0/: fix gtk_calendar_get_date binding
if (expr.inner.error) {
return;
}
- if (expr.inner.static_type == null) {
- expr.error = true;
- Report.error (expr.source_reference, "internal error: unknown type of inner expression");
- return;
- }
- if (expr.inner.static_type.data_type == null) {
+ if (!(expr.inner.static_type is ValueType
+ || expr.inner.static_type is ClassType
+ || expr.inner.static_type is InterfaceType
+ || expr.inner.static_type is PointerType)) {
expr.error = true;
Report.error (expr.source_reference, "Address-of operator not supported for this expression");
return;