Fix for KT-10545
//TODO unfix: see KT-14305
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package test;
|
||||
|
||||
public class Some {
|
||||
@SomeAnnotation(some = "Foo", same = 0)
|
||||
public void foo() {
|
||||
|
||||
}
|
||||
|
||||
@SomeAnnotation(some = {"Bar", "Buz"}, same = {1, 2})
|
||||
public void bar() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package test
|
||||
|
||||
class Some {
|
||||
@SomeAnnotation(some = arrayOf("Foo"), same = intArrayOf(0))
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
|
||||
@SomeAnnotation(some = arrayOf("Bar", "Buz"), same = intArrayOf(1, 2))
|
||||
fun bar() {
|
||||
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
public @interface SomeAnnotation {
|
||||
String[] some() default {};
|
||||
int[] same() default {};
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
public @interface SomeAnnotation {
|
||||
String[] some() default {};
|
||||
int[] same() default {};
|
||||
}
|
||||
Reference in New Issue
Block a user