JVM: Support using KClass as annotation parameter type

This commit is contained in:
Denis Zharkov
2015-04-07 17:27:15 +03:00
parent 82674e56b9
commit cc17f7d82d
19 changed files with 248 additions and 10 deletions
@@ -0,0 +1,10 @@
import kotlin.reflect.KClass
fun box(): String {
try {
javaClass<String>() as KClass<String>
} catch (e: Exception) {
return "OK"
}
return "fail"
}