ac50433e17
In this commit I moved IGNORE_BACKEND_FIR to the end or deleted it when it was applicable, to preserve correct line numbers
16 lines
306 B
Kotlin
Vendored
16 lines
306 B
Kotlin
Vendored
//FILE: test.kt
|
|
|
|
fun box() {
|
|
if (listOf(1, 2, 3).myAny { it > 2 } == true) {
|
|
println("foo")
|
|
}
|
|
}
|
|
|
|
public inline fun <T> Iterable<T>.myAny(predicate: (T) -> Boolean): Boolean {
|
|
for (element in this) {
|
|
if (predicate(element)) return true
|
|
}
|
|
return false
|
|
}
|
|
|
|
// 3 LINENUMBER 4 |