[vala] Fix crash on element access with generic methods



commit 4e382fbcdde008d01193b02d6f6e3fd0c3327d07
Author: Jürg Billeter <j bitron ch>
Date:   Wed Oct 6 20:47:39 2010 +0200

    Fix crash on element access with generic methods
    
    Fixes bug 626868.

 vala/valaelementaccess.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/vala/valaelementaccess.vala b/vala/valaelementaccess.vala
index ed452ca..1b60c6b 100644
--- a/vala/valaelementaccess.vala
+++ b/vala/valaelementaccess.vala
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]