Refine loading annotation parameters from java
- Parameter named `value` is always first - Array parameter represented as vararg iff its name is `value` and all other parameters have default values #KT-2576 Fixed #KT-6641 Fixed #KT-6220 Fixed #KT-6652 Fixed
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
// FILE: A.java
|
||||
public @interface A {
|
||||
String[] value();
|
||||
}
|
||||
|
||||
// FILE: b.kt
|
||||
[A("1", "2", "3")] fun test1() {}
|
||||
|
||||
[A("4")] fun test2() {}
|
||||
|
||||
[A(*array("5", "6"), "7")] fun test3() {}
|
||||
|
||||
[A()] fun test4() {}
|
||||
|
||||
[A] fun test5() {}
|
||||
Reference in New Issue
Block a user