11 lines
217 B
Kotlin
Vendored
11 lines
217 B
Kotlin
Vendored
// EXPECTED_REACHABLE_NODES: 1284
|
|
package foo
|
|
|
|
inline fun block(p: () -> Int) = p()
|
|
|
|
fun createFunction(x: Int): () -> Int = { x }
|
|
|
|
fun box(): String {
|
|
assertEquals(23, block(createFunction(23)))
|
|
return "OK"
|
|
} |