]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix bogus errors about missing return type in creation methods, fixes bug
authorJürg Billeter <j@bitron.ch>
Fri, 16 Jan 2009 22:06:02 +0000 (22:06 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 16 Jan 2009 22:06:02 +0000 (22:06 +0000)
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

svn path=/trunk/; revision=2368

ChangeLog
vala/valacreationmethod.vala

index 124589194792c0c3019cc20b3b2c0e20b6dca1eb..861aabcc41fb1b47990fddfa04a8543c87b220b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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
+
 2009-01-16  Jürg Billeter  <j@bitron.ch>
 
        * gobject/valaccodebasemodule.vala:
index d404b2a316c12899fcfe8b17fe6e866f8ddfec37..fbdf9aa90c73fed08cac5590fb2a33ba2f2d458c 100644 (file)
@@ -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 @@ public class Vala.CreationMethod : Method {
 
                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;