Files
kotlin/compiler/testData/codegen/boxInline/anonymousObject/capturedLambdaInInlineObject.2.kt
Michael Nedzelsky 01ece0faa4 Revert "fix tests (internal -> public)"
This reverts commit e86bf03e76.
2015-09-23 17:45:40 +03:00

17 lines
336 B
Kotlin
Vendored

package test
internal interface A<T> {
fun run(): T;
}
internal inline fun bar(crossinline y: () -> String) = object : A<String> {
override fun run() : String {
return call(y)
}
}
public inline fun <T> call(crossinline f: () -> T): T = object : A<T> {
override fun run() : T {
return f()
}
}.run()