Fix bug then Map.contains is not an expression
This commit is contained in:
committed by
Yan Zhulanow
parent
bfced7dd1e
commit
0cc5e924a7
+1
-1
@@ -15,7 +15,7 @@ class KotlinMapVariable(type: MapType, name: String) : MapVariableBase(type, nam
|
||||
override fun set(key: Expression, newValue: Expression): Expression =
|
||||
TextExpression("${toCode()}[${key.toCode()}] = ${newValue.toCode()}")
|
||||
|
||||
override fun contains(key: Expression): Expression = TextExpression("${key.toCode()} in ${toCode()}")
|
||||
override fun contains(key: Expression): Expression = TextExpression("(${key.toCode()} in ${toCode()})")
|
||||
|
||||
override fun size(): Expression = TextExpression("${toCode()}.size")
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
key in map
|
||||
(key in map)
|
||||
|
||||
Reference in New Issue
Block a user