]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix formal_target_type in conditional expressions
authorJürg Billeter <j@bitron.ch>
Sat, 8 Jan 2011 13:25:59 +0000 (14:25 +0100)
committerJürg Billeter <j@bitron.ch>
Sat, 8 Jan 2011 13:46:57 +0000 (14:46 +0100)
Fixes bug 638902.

vala/valaconditionalexpression.vala

index c5fdfd698eca0ea0454d549dc53f490e13c8022d..3ae003cd1662c6f1670035273215d61c00e8b26a 100644 (file)
@@ -1,6 +1,6 @@
 /* valaconditionalexpression.vala
  *
- * Copyright (C) 2006-2009  Jürg Billeter
+ * Copyright (C) 2006-2011  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
@@ -178,6 +178,7 @@ public class Vala.ConditionalExpression : Expression {
                false_block.replace_statement (false_decl, false_stmt);
 
                var ma = new MemberAccess.simple (local.name, source_reference);
+               ma.formal_target_type = formal_target_type;
                ma.target_type = target_type;
                ma.check (context);