summaryrefslogtreecommitdiff
path: root/vala/valalambdaexpression.vala
diff options
context:
space:
mode:
authorMichal Hruby <michal.mhr@gmail.com>2011-03-09 20:13:27 +0100
committerLuca Bruno <lucabru@src.gnome.org>2011-04-04 16:34:26 +0200
commitb31963e1db2f461858661854c44a21752226054b (patch)
treea24ab428e237420042ac1d4abe15439b947b3eb4 /vala/valalambdaexpression.vala
parent338c14b806f6a54d1c644481ae48d482acccce78 (diff)
downloadvala-b31963e1db2f461858661854c44a21752226054b.tar.gz
Support array_length_type for delegate return values
Partially fixes bug 644420.
Diffstat (limited to 'vala/valalambdaexpression.vala')
-rw-r--r--vala/valalambdaexpression.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/vala/valalambdaexpression.vala b/vala/valalambdaexpression.vala
index 7b9e03f1d..c09aea82b 100644
--- a/vala/valalambdaexpression.vala
+++ b/vala/valalambdaexpression.vala
@@ -135,6 +135,9 @@ public class Vala.LambdaExpression : Expression {
var cb = (Delegate) ((DelegateType) target_type).delegate_symbol;
var return_type = cb.return_type.get_actual_type (target_type, null, this);
method = new Method (get_lambda_name (context), return_type, source_reference);
+ method.no_array_length = cb.no_array_length;
+ method.array_null_terminated = cb.array_null_terminated;
+ method.array_length_type = cb.array_length_type;
// track usage for flow analyzer
method.used = true;
method.check_deprecated (source_reference);