mirror of
https://github.com/vlang/v.git
synced 2025-09-15 10:27:19 -04:00
cgen: fix !in not working with maps
This commit is contained in:
parent
a0d6651e0e
commit
78f9f25a00
@ -1338,7 +1338,7 @@ fn (g mut Gen) infix_expr(node ast.InfixExpr) {
|
|||||||
// g.infix_op = node.op
|
// g.infix_op = node.op
|
||||||
left_sym := g.table.get_type_symbol(node.left_type)
|
left_sym := g.table.get_type_symbol(node.left_type)
|
||||||
right_sym := g.table.get_type_symbol(node.right_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 {
|
fn_name := match node.op {
|
||||||
.plus {
|
.plus {
|
||||||
'string_add('
|
'string_add('
|
||||||
|
Loading…
x
Reference in New Issue
Block a user