6ee20574e1
that were affected by deduplication of inherited serial info annotations. Prohibit combination of @InheritableSerialInfo and @Repeatable. Fixes https://github.com/Kotlin/kotlinx.serialization/issues/2099
23 lines
702 B
Kotlin
Vendored
23 lines
702 B
Kotlin
Vendored
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
|
|
// FIR_IDENTICAL
|
|
// SKIP_TXT
|
|
|
|
// WITH_STDLIB
|
|
// FULL_JDK
|
|
|
|
import kotlinx.serialization.*
|
|
|
|
<!INHERITABLE_SERIALINFO_CANT_BE_REPEATABLE!>@InheritableSerialInfo<!>
|
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.PROPERTY)
|
|
@Repeatable
|
|
annotation class RepeatableSerialInfo(val value: Int)
|
|
|
|
<!INHERITABLE_SERIALINFO_CANT_BE_REPEATABLE!>@InheritableSerialInfo<!>
|
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.PROPERTY)
|
|
@java.lang.annotation.Repeatable(JavaRepeatableContainer::class)
|
|
annotation class JavaRepeatable(val value2: Int)
|
|
|
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.PROPERTY)
|
|
annotation class JavaRepeatableContainer(val value: Array<JavaRepeatable>)
|
|
|