Files
kotlin-fork/compiler/testData/codegen/boxInline/lambdaInLambdaNoInline/2.kt
T
Mikhael Bogdanov 2dcc0bce46 Inline refactoring: more templates for captured fields
Support of complex lambda inlining cases
2014-03-13 10:36:54 +04:00

14 lines
210 B
Kotlin

package test
fun concat(suffix: String, l: (s: String) -> Unit) {
l(suffix)
}
fun <T> noInlineFun(arg: T, f: (T) -> Unit) {
f(arg)
}
inline fun doSmth(a: String): String {
return a.toString()
}