Add cast to expected type in call-based in-expression generation
#KT-20106 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun box(): String {
|
||||
val strSet = setOf("a", "b")
|
||||
val xx = "a" to ("a" in strSet)
|
||||
return if (!xx.second) "fail" else "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user