]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Set formal_target_type to fix constructors using generic parameter types,
authorJürg Billeter <j@bitron.ch>
Sat, 17 Jan 2009 13:09:21 +0000 (13:09 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sat, 17 Jan 2009 13:09:21 +0000 (13:09 +0000)
2009-01-17  Jürg Billeter  <j@bitron.ch>

* vala/valaobjectcreationexpression.vala:

Set formal_target_type to fix constructors using generic parameter
types, fixes bug 543477

svn path=/trunk/; revision=2372

ChangeLog
vala/valaobjectcreationexpression.vala

index 93279bfe1b5b8f895e7289df466e74d0f6c72406..5dbf8fd52a49b1bf20acf05466652cf3689d86f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-01-17  Jürg Billeter  <j@bitron.ch>
+
+       * vala/valaobjectcreationexpression.vala:
+
+       Set formal_target_type to fix constructors using generic parameter
+       types, fixes bug 543477
+
 2009-01-17  Jürg Billeter  <j@bitron.ch>
 
        * gobject/valaccodememberaccessmodule.vala:
index 57a580a8ce7e1f868fa66a4fde7800f37777ca85..a35db7891d1aa14c8b4c3ed9e8465bf5f1465f0a 100644 (file)
@@ -311,7 +311,8 @@ public class Vala.ObjectCreationExpression : Expression {
                                        Expression arg = arg_it.get ();
 
                                        /* store expected type for callback parameters */
-                                       arg.target_type = param.parameter_type;
+                                       arg.formal_target_type = param.parameter_type;
+                                       arg.target_type = arg.formal_target_type.get_actual_type (value_type, this);
                                }
                        }