Fix for KT-10545

//TODO unfix: see KT-14305
This commit is contained in:
Simon Ogorodnik
2016-10-11 18:42:32 +03:00
parent 2c99aac5a9
commit 4710f709ce
6 changed files with 72 additions and 11 deletions
@@ -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() {
}
}
@@ -0,0 +1,8 @@
package test;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface SomeAnnotation {
String[] some() default {};
int[] same() default {};
}
@@ -0,0 +1,8 @@
package test;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface SomeAnnotation {
String[] some() default {};
int[] same() default {};
}