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
This commit is contained in:
Alexander Udalov
2015-07-29 23:20:35 +03:00
parent 0b30758987
commit 628bb774fd
8 changed files with 101 additions and 21 deletions
@@ -0,0 +1,14 @@
// 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"
}