Commit 201a3e7a authored by Jürg Billeter's avatar Jürg Billeter

Fix crash when using `in' operator

parent 9a509bce
......@@ -358,8 +358,7 @@ public class Vala.BinaryExpression : Expression {
var contains_call = new MethodCall (new MemberAccess (right, "contains"));
contains_call.add_argument (left);
parent_node.replace_expression (this, contains_call);
error = !contains_call.check (analyzer);
return !error;
return contains_call.check (analyzer);
value_type = analyzer.bool_type;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment