Files
kotlin-fork/compiler/testData/codegen/boxInline/reified/defaultLambda/nested2Static.kt
T

23 lines
382 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// FILE: 1.kt
// SKIP_INLINE_CHECK_IN: inlineFun$default
// WITH_RUNTIME
package test
inline fun <reified T> inlineFun(crossinline lambda: () -> String = { { T::class.java.simpleName } () }): String {
return {
lambda()
} ()
}
// FILE: 2.kt
import test.*
class OK
fun box(): String {
return inlineFun<OK>()
}