]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Set target_type for default arguments to fix delegate parameters
authorJürg Billeter <j@bitron.ch>
Thu, 21 Oct 2010 19:28:39 +0000 (21:28 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 21 Oct 2010 19:28:39 +0000 (21:28 +0200)
vala/valaformalparameter.vala

index 7c0cf57ed5ff305f4b20d47272bd0585ff990799..225f73e5415573dcce1c8a2bc7b62c7ecde99cce 100644 (file)
@@ -252,6 +252,7 @@ public class Vala.FormalParameter : Variable {
                        }
 
                        if (initializer != null) {
+                               initializer.target_type = variable_type.copy ();
                                initializer.check (analyzer);
                        }
                }