Report error if repeated annotation is used with JVM target 1.6
#KT-12794
This commit is contained in:
@@ -199,7 +199,9 @@ fun ValueParameterDescriptor.declaresOrInheritsDefaultValue(): Boolean {
|
||||
)
|
||||
}
|
||||
|
||||
fun Annotated.isRepeatableAnnotation(): Boolean =
|
||||
// Note that on JVM, an annotation class is also considered repeatable if it's annotated with java.lang.annotation.Repeatable.
|
||||
// See JvmPlatformAnnotationFeaturesSupport.
|
||||
fun Annotated.isAnnotatedWithKotlinRepeatable(): Boolean =
|
||||
annotations.findAnnotation(StandardNames.FqNames.repeatable) != null
|
||||
|
||||
fun Annotated.isDocumentedAnnotation(): Boolean =
|
||||
|
||||
Reference in New Issue
Block a user