diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | vala/valalambdaexpression.vala | 6 |
2 files changed, 11 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2009-01-09 Jürg Billeter <j@bitron.ch> + * vala/valalambdaexpression.vala: + + Support lambda expressions throwing errors, fixes bug 563018 + +2009-01-09 Jürg Billeter <j@bitron.ch> + * vala/valaparser.vala: Do not allow empty enums and errordomains, fixes bug 543564 diff --git a/vala/valalambdaexpression.vala b/vala/valalambdaexpression.vala index f13e9588e..042df585c 100644 --- a/vala/valalambdaexpression.vala +++ b/vala/valalambdaexpression.vala @@ -1,6 +1,6 @@ /* valalambdaexpression.vala * - * Copyright (C) 2006-2008 Jürg Billeter + * Copyright (C) 2006-2009 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -162,6 +162,10 @@ public class Vala.LambdaExpression : Expression { return false; } + foreach (var error_type in cb.get_error_types ()) { + method.add_error_type (error_type.copy ()); + } + if (expression_body != null) { var block = new Block (source_reference); block.scope.parent_scope = method.scope; |