Add cast to expected type in call-based in-expression generation

#KT-20106 Fixed
This commit is contained in:
Dmitry Petrov
2017-09-05 11:42:03 +03:00
parent 081b732070
commit 21cdf9dd5b
6 changed files with 32 additions and 0 deletions
@@ -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"
}