Files
kotlin/compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.2.kt
2014-07-07 10:51:46 +04:00

7 lines
172 B
Kotlin

class My(val value: Int)
inline fun <T, R> T.perform(job: (T)-> R) : R {
return job(this)
}
public inline fun String.toInt2() : Int = java.lang.Integer.parseInt(this)