]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix crash on element access with generic methods
authorJürg Billeter <j@bitron.ch>
Wed, 6 Oct 2010 18:47:39 +0000 (20:47 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 6 Oct 2010 18:47:39 +0000 (20:47 +0200)
Fixes bug 626868.

vala/valaelementaccess.vala

index ed452ca89aca49effb415e0354d842c652e1cc94..1b60c6b07b9620a31a6b766fd41557de431e5092 100644 (file)
@@ -197,6 +197,7 @@ public class Vala.ElementAccess : Expression {
                                        foreach (Expression e in get_indices ()) {
                                                get_call.add_argument (e);
                                        }
+                                       get_call.formal_target_type = this.formal_target_type;
                                        get_call.target_type = this.target_type;
                                        parent_node.replace_expression (this, get_call);
                                        return get_call.check (analyzer);