Files
kotlin-fork/compiler/testData/codegen/boxInline/signature/starProjectionSubstitution.2.kt
T
Michael Bogdanov 607f32615f Type uncapturing
2016-01-14 15:32:50 +03:00

13 lines
254 B
Kotlin
Vendored

package test
interface F<T> {
fun test(p: T) : Int
}
inline fun <T> Array<T>.copyOfRange1(crossinline toIndex: () -> Int) =
object : F<T> {
override fun test(p: T): Int {
return toIndex()
}
}