Files
kotlin-fork/compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt
T
2021-02-02 17:53:52 +03:00

20 lines
352 B
Kotlin
Vendored

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