diff options
author | Jürg Billeter <j@bitron.ch> | 2009-06-02 17:26:29 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-06-03 09:24:59 +0200 |
commit | 37c82ec971b2b200f3d7ca188d1c91d0f34a3f9f (patch) | |
tree | 9cb14f026cd0ea47b137de4029bb29aff6fc814b /vala/valaforeachstatement.vala | |
parent | 17fa44f059df9ac781489f2b5953e162a0446dac (diff) | |
download | vala-37c82ec971b2b200f3d7ca188d1c91d0f34a3f9f.tar.gz |
Add initial support for generic methods
Fixes bug 492483.
Diffstat (limited to 'vala/valaforeachstatement.vala')
-rw-r--r-- | vala/valaforeachstatement.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valaforeachstatement.vala b/vala/valaforeachstatement.vala index 91bbd8580..78836c136 100644 --- a/vala/valaforeachstatement.vala +++ b/vala/valaforeachstatement.vala @@ -199,7 +199,7 @@ public class Vala.ForeachStatement : Block { error = true; return false; } - var iterator_type = iterator_method.return_type.get_actual_type (collection_type, this); + var iterator_type = iterator_method.return_type.get_actual_type (collection_type, null, this); if (iterator_type is VoidType) { Report.error (collection.source_reference, "`%s' must return an iterator".printf (iterator_method.get_full_name ())); error = true; @@ -232,7 +232,7 @@ public class Vala.ForeachStatement : Block { error = true; return false; } - var element_type = get_method.return_type.get_actual_type (iterator_type, this); + var element_type = get_method.return_type.get_actual_type (iterator_type, null, this); if (element_type is VoidType) { Report.error (collection.source_reference, "`%s' must return an element".printf (get_method.get_full_name ())); error = true; |