Add tests for obsolete issues (KT-42722, KT-39880)

This commit is contained in:
Victor Petukhov
2021-02-25 13:40:17 +03:00
parent 9492e75d38
commit 27846f4532
9 changed files with 96 additions and 0 deletions
@@ -0,0 +1,10 @@
// DONT_TARGET_EXACT_BACKEND: WASM
// WITH_RUNTIME
fun foo(fn: () -> Boolean) {}
fun box(): String {
foo { 1 in setOf("1") }
val a = 1 in setOf("1")
return "OK"
}
@@ -0,0 +1,10 @@
// DONT_TARGET_EXACT_BACKEND: WASM
// WITH_RUNTIME
fun box(): String {
val set = setOf<Int>(1, 2, 3, 4, 5)
println(0 in set)
println(1 in set)
println(null in set)
return "OK"
}