vala r2368 - in trunk: . vala



Author: juergbi
Date: Fri Jan 16 22:06:02 2009
New Revision: 2368
URL: http://svn.gnome.org/viewvc/vala?rev=2368&view=rev

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

	* vala/valacreationmethod.vala:

	Fix bogus errors about missing return type in creation methods,
	fixes bug 564178


Modified:
   trunk/ChangeLog
   trunk/vala/valacreationmethod.vala

Modified: trunk/vala/valacreationmethod.vala
==============================================================================
--- trunk/vala/valacreationmethod.vala	(original)
+++ trunk/vala/valacreationmethod.vala	Fri Jan 16 22:06:02 2009
@@ -1,6 +1,7 @@
 /* valacreationmethod.vala
  *
- * Copyright (C) 2007-2008  Raffaele Sandrini, JÃrg Billeter
+ * Copyright (C) 2007-2009  JÃrg Billeter
+ * Copyright (C) 2007-2008  Raffaele Sandrini
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -124,7 +125,7 @@
 
 		process_attributes ();
 
-		if (type_name != null && type_name != analyzer.current_symbol.name) {
+		if (type_name != null && type_name != parent_symbol.name) {
 			// type_name is null for constructors generated by GIdlParser
 			Report.error (source_reference, "missing return type in method `%s.%sÂ".printf (analyzer.current_symbol.get_full_name (), type_name));
 			error = true;



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