Files
kotlin-fork/compiler/testData/codegen/boxInline/reified/defaultLambda/nested.kt
T
2018-08-28 13:48:43 +03:00

22 lines
420 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: NATIVE
// FILE: 1.kt
// LANGUAGE_VERSION: 1.2
// 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")
}