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

14 lines
236 B
Kotlin
Vendored

// FILE: 1.kt
package test
inline fun foo(crossinline x: () -> String) = { x() }.let { it() }
inline fun <reified T> bar() = foo { { T::class.simpleName!! }.let { it() } }
// FILE: 2.kt
import test.*
class OK
fun box() = bar<OK>()