Files
kotlin/compiler/testData/codegen/boxAgainstJava/reflection/classLiterals/javaClassLiteral.kt
Alexander Udalov 2564a2f91f Do not include kotlin-reflect at runtime by default in codegen tests
Change some tests to either include reflection or to avoid using it
2016-03-09 10:25:38 +03:00

15 lines
188 B
Kotlin
Vendored

// WITH_REFLECT
// FILE: J.java
public class J {
}
// FILE: 1.kt
fun box(): String {
val j = J::class
if (j.simpleName != "J") return "Fail: ${j.simpleName}"
return "OK"
}