Fixed KT-5247 Java to Kotlin: convert java @interfaces into Kotlin annotation classes

#KT-5247 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-07-18 18:48:04 +04:00
parent d7e857ed0a
commit 3c33b7dcfa
14 changed files with 177 additions and 39 deletions
@@ -0,0 +1,16 @@
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
@interface Anon {
String[] stringArray();
int[] intArray();
// string
String string();
}
@Anon(string = "a", stringArray = { "a", "b" }, intArray = { 1, 2 })
@Target({ElementType.CONSTRUCTOR, ElementType.FIELD})
@interface I {
}