Support KClass.objectInstance for objects and companion objects

This commit is contained in:
Alexander Udalov
2015-07-23 18:40:24 +03:00
parent 2eb5201575
commit 6878453d44
5 changed files with 60 additions and 2 deletions
@@ -36,5 +36,8 @@ public class ClassReference(override val jClass: Class<*>) : KClass<Any>, Declar
override val annotations: List<Annotation>
get() = error()
override val objectInstance: Any?
get() = error()
private fun error(): Nothing = throw KotlinReflectionNotSupportedError()
}