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

16 lines
365 B
Kotlin
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()
}