vala r1034 - in trunk: . vala



Author: juergbi
Date: Sat Feb 23 13:20:40 2008
New Revision: 1034
URL: http://svn.gnome.org/viewvc/vala?rev=1034&view=rev

Log:
2008-02-23  Juerg Billeter  <j bitron ch>

	* vala/valasemanticanalyzer.vala: visit child nodes of object
	  creation expressions for error types


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

Modified: trunk/vala/valasemanticanalyzer.vala
==============================================================================
--- trunk/vala/valasemanticanalyzer.vala	(original)
+++ trunk/vala/valasemanticanalyzer.vala	Sat Feb 23 13:20:40 2008
@@ -2182,7 +2182,9 @@
 			check_arguments (expr, new MethodType (m), m.get_parameters (), args);
 
 			expr.tree_can_fail = expr.can_fail = (m.get_error_domains ().size > 0);
-		} else if (type is Enum) {
+		} else if (expr.type_reference is ErrorType) {
+			expr.accept_children (this);
+
 			if (expr.get_argument_list ().size == 0) {
 				expr.error = true;
 				Report.error (expr.source_reference, "Too few arguments, errors need at least 1 argument");



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