From: Jürg Billeter Date: Fri, 16 Jan 2009 22:06:02 +0000 (+0000) Subject: Fix bogus errors about missing return type in creation methods, fixes bug X-Git-Tag: VALA_0_5_6~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e362518ecea10e5dae4f6ff9ec37694b9232e375;p=thirdparty%2Fvala.git Fix bogus errors about missing return type in creation methods, fixes bug 2009-01-16 Jürg Billeter * vala/valacreationmethod.vala: Fix bogus errors about missing return type in creation methods, fixes bug 564178 svn path=/trunk/; revision=2368 --- diff --git a/ChangeLog b/ChangeLog index 124589194..861aabcc4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-01-16 Jürg Billeter + + * vala/valacreationmethod.vala: + + Fix bogus errors about missing return type in creation methods, + fixes bug 564178 + 2009-01-16 Jürg Billeter * gobject/valaccodebasemodule.vala: diff --git a/vala/valacreationmethod.vala b/vala/valacreationmethod.vala index d404b2a31..fbdf9aa90 100644 --- a/vala/valacreationmethod.vala +++ b/vala/valacreationmethod.vala @@ -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;