Files
kotlin-fork/compiler/testData/codegen/boxInline/simpleLambda/2.kt
T
2014-03-03 15:43:35 +04:00

15 lines
180 B
Kotlin

package test
public class Data()
public inline fun <T, R> T.use(block: (T)-> R) : R {
return block(this)
}
public inline fun use2() : Int {
val s = 100
return s
}