Files
kotlin-fork/compiler/testData/codegen/boxInline/reified/kt46584_2.kt
T
pyos 3fc2cc410c JVM_IR: propagate reified type parameter usages from inline lambdas
...to whichever class they are inlined into, not the class they are
declared in (which is not the same if the lambda is crossinline).

 #KT-46584 Fixed
2021-05-12 15:09:35 +03:00

14 lines
202 B
Kotlin
Vendored

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