vala r1137 - in trunk: . vala



Author: juergbi
Date: Tue Mar 18 22:19:30 2008
New Revision: 1137
URL: http://svn.gnome.org/viewvc/vala?rev=1137&view=rev

Log:
2008-03-18  Juerg Billeter  <j bitron ch>

	* vala/valasemanticanalyzer.vala: support taking address of pointer


Modified:
   trunk/ChangeLog
   trunk/vala/valasemanticanalyzer.vala

Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala	(original)
+++ trunk/vala/valasemanticanalyzer.vala	Tue Mar 18 22:19:30 2008
@@ -2390,12 +2390,10 @@
 		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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]