Kapt: Support nested annotations property.

Also do not rely on Java class comparison, check against qualified names.
(cherry picked from commit 7610945)
This commit is contained in:
Yan Zhulanow
2016-08-18 18:45:49 +03:00
committed by Yan Zhulanow
parent 49bd303988
commit a8b577cd09
4 changed files with 50 additions and 19 deletions
@@ -0,0 +1,7 @@
import kotlin.reflect.KClass
annotation class Anno(val a: Anno2, val b: Array<Anno2>, val c: String, val d: KClass<*>, val e: Array<KClass<*>>)
annotation class Anno2(val name: String)
@Anno(a = Anno2("Tim"), b = arrayOf(Anno2("Kate"), Anno2("Mary")), c = "ABC", d = Anno2::class, e = arrayOf(Anno::class))
class Test