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

20 lines
367 B
Kotlin
Vendored

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