From 2e39fa53cd90ba4607f405eac794ba88b78fd98c Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Thu, 23 Jul 2015 12:02:28 +0300 Subject: [PATCH] Annotation repetition checking with a pair of tests, some old tests changes GitOrigin-RevId: 2829f9ca1e299147133a257d24bc31abba5c7298 --- .../idea/tests/testData/checker/AnnotationOnFile.kt | 10 +++++----- .../decompiler/stubBuilder/Annotations/Annotations.kt | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/kotlin/idea/tests/testData/checker/AnnotationOnFile.kt b/plugins/kotlin/idea/tests/testData/checker/AnnotationOnFile.kt index b7268c4c2c9b..3aa74e65ad24 100644 --- a/plugins/kotlin/idea/tests/testData/checker/AnnotationOnFile.kt +++ b/plugins/kotlin/idea/tests/testData/checker/AnnotationOnFile.kt @@ -1,10 +1,10 @@ @file:kotlin.deprecated("message") @file:suppress(BAR) -@file:suppress(BAZ) +@file:suppress(BAZ) -@kotlin.deprecated("message") -@suppress(BAR) -@suppress(BAZ) +@kotlin.deprecated("message") +@suppress(BAR) +@suppress(BAZ) @file:myAnnotation(1, "string") @file:boo.myAnnotation(1, BAR) @@ -20,4 +20,4 @@ val BAZ = "baz" val N = 0 target(AnnotationTarget.FILE) -annotation class myAnnotation(val i: Int, val s: String) +annotation(repeatable = true) class myAnnotation(val i: Int, val s: String) diff --git a/plugins/kotlin/idea/tests/testData/decompiler/stubBuilder/Annotations/Annotations.kt b/plugins/kotlin/idea/tests/testData/decompiler/stubBuilder/Annotations/Annotations.kt index 6eaf41a5c514..b351531a8daf 100644 --- a/plugins/kotlin/idea/tests/testData/decompiler/stubBuilder/Annotations/Annotations.kt +++ b/plugins/kotlin/idea/tests/testData/decompiler/stubBuilder/Annotations/Annotations.kt @@ -32,6 +32,6 @@ annotation class a target(AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION, AnnotationTarget.CLASSIFIER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.TYPE) -annotation(repeatable = false) class b(val e: E) +annotation(repeatable = true) class b(val e: E) enum class E { E1 E2 } \ No newline at end of file