From 78f9f25a0036ef98f225379cb541d19d6de8fedb Mon Sep 17 00:00:00 2001 From: krischerven <50562493+krischerven@users.noreply.github.com> Date: Sun, 12 Apr 2020 20:22:55 -0400 Subject: [PATCH] cgen: fix !in not working with maps --- vlib/v/gen/cgen.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index 1c713dbb6c..6b6325fdc7 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -1338,7 +1338,7 @@ fn (g mut Gen) infix_expr(node ast.InfixExpr) { // g.infix_op = node.op left_sym := g.table.get_type_symbol(node.left_type) right_sym := g.table.get_type_symbol(node.right_type) - if node.left_type == table.string_type_idx && node.op != .key_in { + if node.left_type == table.string_type_idx && node.op != .key_in && node.op != .not_in { fn_name := match node.op { .plus { 'string_add('