Files
kotlin-fork/compiler/testData/ir/irText/expressions/in.kt.txt
T
2020-11-26 00:14:03 +03:00

17 lines
366 B
Plaintext
Vendored

fun test1(a: Any, x: Collection<Any>): Boolean {
return x.contains(element = a)
}
fun test2(a: Any, x: Collection<Any>): Boolean {
return x.contains(element = a).not()
}
fun <T : Any?> test3(a: T, x: Collection<T>): Boolean {
return x.contains(element = a)
}
fun <T : Any?> test4(a: T, x: Collection<T>): Boolean {
return x.contains(element = a).not()
}