mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
Currently not much you can do with them, but in the future '.java' extension property will allow to get the Class instance from it. Also introduce codegen tests with stdlib but without reflection in the classpath. Based on the work by @dnpetrov
15 lines
235 B
Kotlin
Vendored
15 lines
235 B
Kotlin
Vendored
// NO_KOTLIN_REFLECT
|
|
|
|
import kotlin.test.assertNotNull
|
|
|
|
class Klass
|
|
|
|
fun box(): String {
|
|
assertNotNull(Int::class)
|
|
assertNotNull(String::class)
|
|
assertNotNull(Klass::class)
|
|
assertNotNull(Error::class)
|
|
|
|
return "OK"
|
|
}
|