vala r1452 - in trunk: . vala



Author: jamiemcc
Date: Mon May 26 15:25:51 2008
New Revision: 1452
URL: http://svn.gnome.org/viewvc/vala?rev=1452&view=rev

Log:
2008-05-26  Jamie McCracken  <jamiemcc gnome org>

	* vala/valagenieparser.vala: 
	
	Fix initialiser expression in for statement



Modified:
   trunk/ChangeLog
   trunk/vala/valagenieparser.vala

Modified: trunk/vala/valagenieparser.vala
==============================================================================
--- trunk/vala/valagenieparser.vala	(original)
+++ trunk/vala/valagenieparser.vala	Mon May 26 15:25:51 2008
@@ -1724,6 +1724,9 @@
 		}
 
 		if (is_expr) {
+			var expr_begin = get_location ();
+			id = parse_identifier ();
+			rollback (expr_begin);
 			initializer = parse_statement_expression ();
 		} else {
 			block = new Block (get_src (begin));



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