20 lines
428 B
Kotlin
Vendored
20 lines
428 B
Kotlin
Vendored
package soInlineAnonymousFunctionArgument
|
|
|
|
fun main(args: Array<String>) {
|
|
//Breakpoint!
|
|
val b = 1 // 1
|
|
|
|
foo( // 2
|
|
fun (){ test(1) }
|
|
)
|
|
|
|
foo(fun (){ test(1) }) // 3
|
|
} // 4
|
|
|
|
inline fun foo(f: () -> Unit) {
|
|
f()
|
|
}
|
|
|
|
fun test(i: Int) = 1
|
|
|
|
// STEP_OVER: 6 |