]> 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>
Fri, 8 Oct 2010 21:05:49 +0000 (23:05 +0200)
Fixes bug 626868.

vala/valaelementaccess.vala

index 42c386fdcd0b75c7b4c29db82c9b9ad606569d63..c5707fc5cd1ec659c8d578236a026e0444f9f181 100644 (file)
@@ -205,6 +205,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);