Files
kotlin-fork/compiler/testData/codegen/boxInline/reified/nameClash.kt
T
pyos 07cb3a5ff8 JVM: do not reify methods of objects in lambdas
All type parameters used in them are not from the inline function
anyway.
2021-07-14 10:11:05 +02:00

17 lines
224 B
Kotlin
Vendored

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