mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
Similarly to previous commits, this method was unused, so we're changing its semantics in API version >= 1.4. #KT-22275 In Progress
17 lines
202 B
Kotlin
Vendored
17 lines
202 B
Kotlin
Vendored
// !API_VERSION: LATEST
|
|
// FILE: 1.kt
|
|
|
|
package test
|
|
|
|
public inline fun <R> doRun(block: () -> R): R {
|
|
return block()
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return doRun { "OK" }
|
|
}
|