mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Previously examples were failing with IllegalStateException from JVM back-end because there was an error type without any error reported
12 lines
408 B
Kotlin
Vendored
12 lines
408 B
Kotlin
Vendored
// !LANGUAGE: -BoundCallableReferences
|
|
// !DIAGNOSTICS: -UNCHECKED_CAST
|
|
|
|
import kotlin.reflect.KClass
|
|
|
|
val <T : Any> KClass<T>.java: Class<T> get() = null!!
|
|
|
|
val <T : Any> KClass<T>.javaObjectType: Class<T>
|
|
get() {
|
|
return java.<!UNRESOLVED_REFERENCE!>lang<!>.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>Class<!>::class.<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>java<!> <!USELESS_CAST!>as Class<T><!>
|
|
}
|