Files
kotlin-fork/compiler/testData/codegen/boxInline/reified/defaultLambda/nestedStatic.kt
T
2019-08-06 14:48:16 +02:00

20 lines
351 B
Kotlin
Vendored

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