From dbaf01feedc7380583b78f92c33fe667056b0cd5 Mon Sep 17 00:00:00 2001 From: Denis Zharkov Date: Tue, 8 Sep 2015 18:56:21 +0300 Subject: [PATCH] Minor. Add '@' symbol in testData where necessary (fix Java 8 build) --- .../testsWithJava8/annotations/deprecatedRepeatable.kt | 2 +- .../diagnostics/testsWithJava8/annotations/javaRepeatable.kt | 2 +- .../testsWithJava8/annotations/javaRepeatableRetention.kt | 2 +- .../diagnostics/testsWithJava8/annotations/javaUnrepeatable.kt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/testData/diagnostics/testsWithJava8/annotations/deprecatedRepeatable.kt b/compiler/testData/diagnostics/testsWithJava8/annotations/deprecatedRepeatable.kt index b624cd332cf..74efbf95a54 100644 --- a/compiler/testData/diagnostics/testsWithJava8/annotations/deprecatedRepeatable.kt +++ b/compiler/testData/diagnostics/testsWithJava8/annotations/deprecatedRepeatable.kt @@ -2,7 +2,7 @@ import java.lang.annotation.Repeatable @java.lang.annotation.Repeatable(Annotations::class) annotation class RepAnn -Repeatable(OtherAnnotations::class) annotation class OtherAnn +@Repeatable(OtherAnnotations::class) annotation class OtherAnn annotation class Annotations(vararg val value: RepAnn) diff --git a/compiler/testData/diagnostics/testsWithJava8/annotations/javaRepeatable.kt b/compiler/testData/diagnostics/testsWithJava8/annotations/javaRepeatable.kt index 582afe16827..77e0675a678 100644 --- a/compiler/testData/diagnostics/testsWithJava8/annotations/javaRepeatable.kt +++ b/compiler/testData/diagnostics/testsWithJava8/annotations/javaRepeatable.kt @@ -16,5 +16,5 @@ public @interface RepeatableAnnotations { // FILE: RepeatableUse.kt // Error should be gone when Java 8 Target will be available -RepeatableAnnotation RepeatableAnnotation class My +@RepeatableAnnotation @RepeatableAnnotation class My diff --git a/compiler/testData/diagnostics/testsWithJava8/annotations/javaRepeatableRetention.kt b/compiler/testData/diagnostics/testsWithJava8/annotations/javaRepeatableRetention.kt index ea372b00ced..9a946c8615b 100644 --- a/compiler/testData/diagnostics/testsWithJava8/annotations/javaRepeatableRetention.kt +++ b/compiler/testData/diagnostics/testsWithJava8/annotations/javaRepeatableRetention.kt @@ -17,6 +17,6 @@ public @interface RepeatableAnnotations { // FILE: RepeatableUse.kt // Error should be gone when Java 8 Target will be available -RepeatableAnnotation RepeatableAnnotation class My +@RepeatableAnnotation @RepeatableAnnotation class My diff --git a/compiler/testData/diagnostics/testsWithJava8/annotations/javaUnrepeatable.kt b/compiler/testData/diagnostics/testsWithJava8/annotations/javaUnrepeatable.kt index dc58f6fe060..41d80ea806a 100644 --- a/compiler/testData/diagnostics/testsWithJava8/annotations/javaUnrepeatable.kt +++ b/compiler/testData/diagnostics/testsWithJava8/annotations/javaUnrepeatable.kt @@ -6,4 +6,4 @@ public @interface UnrepeatableAnnotation { // FILE: UnrepeatableUse.kt -UnrepeatableAnnotation UnrepeatableAnnotation class My \ No newline at end of file +@UnrepeatableAnnotation @UnrepeatableAnnotation class My \ No newline at end of file