Do not include kotlin-reflect at runtime by default in codegen tests

Change some tests to either include reflection or to avoid using it
This commit is contained in:
Alexander Udalov
2016-03-05 23:55:09 +03:00
committed by Alexander Udalov
parent 20e36438e2
commit 2564a2f91f
20 changed files with 37 additions and 24 deletions

View File

@@ -20,5 +20,5 @@ class MyJavaClass {}
fun box(): String {
val ann = MyJavaClass::class.java.getAnnotation(JavaAnn::class.java)
if (ann == null) return "fail: cannot find JavaAnn on MyClass"
return ann.value.simpleName!!
return ann.value.java.simpleName!!
}