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

23 lines
305 B
Kotlin
Vendored

// FILE: 1.kt
package test
import kotlin.reflect.KClass
inline fun <reified T : Any> injectFnc(): KClass<T> = {
T::class
} ()
public class Box
// FILE: 2.kt
import test.*
fun box(): String {
val boxClass = injectFnc<Box>()
if (boxClass != Box::class) return "fail 1"
return "OK"
}