Files
kotlin-fork/compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt
T
2022-07-14 23:24:18 +02:00

20 lines
361 B
Kotlin
Vendored

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