psi2ir: Java annotations have no primary constructor

This commit is contained in:
Dmitry Petrov
2018-05-30 16:16:54 +03:00
parent 8094cb7dc5
commit 7b1b557250
4 changed files with 43 additions and 3 deletions
@@ -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() {}