Files
kotlin-fork/compiler/testData/codegen/boxInline/property/reifiedVal.kt
T
Svyatoslav Kuzmich f5a80a30f7 Mute and unmute tests
2018-08-15 18:20:07 +03:00

18 lines
283 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: NATIVE
// WITH_RUNTIME
// WITH_REFLECT
// FILE: 1.kt
package test
inline val <reified T: Any> T.value: String
get() = T::class.simpleName!!
// FILE: 2.kt
import test.*
class OK
fun box(): String {
return OK().value ?: "fail"
}