Make property java available on KClass<T> where T is type parameter without upper bounds.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
// "Add 'kotlin.Any' as upper bound for E" "true"
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
inline fun <reified /* abc */ E> bar() = E::class.java<caret>
|
||||
|
||||
inline fun <reified /* abc */ E> bar() = E::class.oldJava<caret>
|
||||
|
||||
val <T: Any> KClass<T>.oldJava get() = java
|
||||
|
||||
Reference in New Issue
Block a user