Support reified extension properties
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// WITH_RUNTIME
|
||||
// FILE: 1.kt
|
||||
package test
|
||||
|
||||
inline val <reified T: Any> T.value: String
|
||||
get() = T::class.java.name
|
||||
|
||||
// FILE: 2.kt
|
||||
import test.*
|
||||
|
||||
class OK
|
||||
|
||||
fun box(): String {
|
||||
return OK().value
|
||||
}
|
||||
Reference in New Issue
Block a user