vala r2305 - in trunk: . vala



Author: juergbi
Date: Fri Jan  9 17:26:35 2009
New Revision: 2305
URL: http://svn.gnome.org/viewvc/vala?rev=2305&view=rev

Log:
2009-01-09  JÃrg Billeter  <j bitron ch>

	* vala/valalambdaexpression.vala:

	Support lambda expressions throwing errors, fixes bug 563018


Modified:
   trunk/ChangeLog
   trunk/vala/valalambdaexpression.vala

Modified: trunk/vala/valalambdaexpression.vala
==============================================================================
--- trunk/vala/valalambdaexpression.vala	(original)
+++ trunk/vala/valalambdaexpression.vala	Fri Jan  9 17:26:35 2009
@@ -1,6 +1,6 @@
 /* valalambdaexpression.vala
  *
- * Copyright (C) 2006-2008  JÃrg Billeter
+ * Copyright (C) 2006-2009  JÃrg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -162,6 +162,10 @@
 			return false;
 		}
 
+		foreach (var error_type in cb.get_error_types ()) {
+			method.add_error_type (error_type.copy ());
+		}
+
 		if (expression_body != null) {
 			var block = new Block (source_reference);
 			block.scope.parent_scope = method.scope;



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