JVM: Support using KClass as annotation parameter type
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
fun box(): String {
|
||||
try {
|
||||
javaClass<String>() as KClass<String>
|
||||
} catch (e: Exception) {
|
||||
return "OK"
|
||||
}
|
||||
return "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user