]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
fix virtual methods with generic return type
authorJuerg Billeter <j@bitron.ch>
Sun, 2 Sep 2007 15:45:56 +0000 (15:45 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sun, 2 Sep 2007 15:45:56 +0000 (15:45 +0000)
2007-09-02  Juerg Billeter  <j@bitron.ch>

* gobject/valacodegeneratormethod.vala: fix virtual methods with generic
  return type

svn path=/trunk/; revision=576

ChangeLog
gobject/valacodegeneratormethod.vala

index eee0f3d74bc22d61bfef12a11d47fd5803981751..c8f8e82e7e143155332f6800035e675330e68489 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-02  Jürg Billeter  <j@bitron.ch>
+
+       * gobject/valacodegeneratormethod.vala: fix virtual methods with generic
+         return type
+
 2007-09-02  Jürg Billeter  <j@bitron.ch>
 
        * vapi/curses.vala: improve Screen class, patch by Ed Schouten
index ee5480564f33d1200f554567e9611ffcf501be84..509ce682b89018000d71424692d01de32714c6e0 100644 (file)
@@ -382,7 +382,7 @@ public class Vala.CodeGenerator {
                                vcall.add_argument (new CCodeIdentifier (cparam.name));
                        }
 
-                       if (m.return_type.data_type == null) {
+                       if (m.return_type.data_type == null && m.return_type.type_parameter == null) {
                                vblock.add_statement (new CCodeExpressionStatement (vcall));
                        } else {
                                /* pass method return value */