[vala/0.10] Fix crash on element access with generic methods
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.10] Fix crash on element access with generic methods
- Date: Fri, 8 Oct 2010 21:18:01 +0000 (UTC)
commit 7b6ef1a55f47cdd2031328cce7b78b8544b2083d
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 42c386f..c5707fc 100644
--- a/vala/valaelementaccess.vala
+++ b/vala/valaelementaccess.vala
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]