Kapt: Allow Kotlin @Repeatable annotations (KT-22451)

We don't generate a wrapper for repeatable annotations, and Javac complains to it.
This commit is contained in:
Yan Zhulanow
2018-02-08 22:42:27 +03:00
parent a3a46fe259
commit edcf0aef53
4 changed files with 121 additions and 7 deletions
@@ -0,0 +1,18 @@
// WITH_RUNTIME
interface Parceler<T>
@Retention(AnnotationRetention.SOURCE)
@Repeatable
@Target(AnnotationTarget.CLASS, AnnotationTarget.PROPERTY)
annotation class TypeParceler<T, P: Parceler<in T>>
@TypeParceler<B, BParceler>
@TypeParceler<C, CParceler>
class Test
class B
class C
object BParceler : Parceler<B>
object CParceler : Parceler<C>