Files
kotlin/compiler/testData/codegen/boxWithStdlib/reflection/noKotlinReflect/simpleClassLiterals.kt
Alexander Udalov 628bb774fd Support class reference expressions without kotlin-reflect.jar in classpath
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
2015-07-30 12:18:28 +03:00

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"
}