472ec72eb9
1. Move tests to their own module 2. Avoid sharing the 'tinyApp' project between tests 3. Clean up option directive handling
24 lines
401 B
Kotlin
Vendored
24 lines
401 B
Kotlin
Vendored
// FILE: soInlineFunOnOneLineForDex.kt
|
|
// EMULATE_DEX: true
|
|
|
|
package soInlineFunOnOneLineForDex
|
|
|
|
fun main(args: Array<String>) {
|
|
val list = listOf(1, 2, 3)
|
|
|
|
list.any1 { it > 2 }
|
|
|
|
foo()
|
|
}
|
|
|
|
fun foo() {
|
|
|
|
}
|
|
|
|
inline fun <T> Iterable<T>.any1(predicate: (T) -> Boolean): Boolean {
|
|
//Breakpoint!
|
|
for (element in this) if (predicate(element)) return true
|
|
return false
|
|
}
|
|
|
|
// STEP_OVER: 3 |