psi2ir: Java annotations have no primary constructor
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// FILE: JavaAnn.java
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@interface JavaAnn {
|
||||
String value() default "";
|
||||
int i() default 0;
|
||||
}
|
||||
|
||||
// FILE: javaAnnotation.kt
|
||||
@JavaAnn fun test1() {}
|
||||
|
||||
@JavaAnn(value="abc", i=123) fun test2() {}
|
||||
|
||||
@JavaAnn(i=123, value="abc") fun test3() {}
|
||||
Reference in New Issue
Block a user