KT-30643 J2K: wrong position of TYPE_USE annotation (#2543)

New J2K: fix wrong position of TYPE_USE annotation

#KT-30643 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-10-08 22:21:27 +09:00
committed by Ilya Kirillov
parent 58f2348647
commit 4da7d11364
8 changed files with 104 additions and 12 deletions
+15 -1
View File
@@ -4,6 +4,8 @@ import org.jetbrains.annotations.Nullable;
import java.util.Set;
import kotlinApi.KotlinClassWithProperties;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
public @interface Anon1 {
String[] value();
@@ -127,4 +129,16 @@ public class JavaClass {
public @interface SpecialExternal {
String[] names(); //array is used
}
}
@Target(ElementType.TYPE_USE)
public @interface TypeUseAnon1 {
}
@Target({ElementType.TYPE_USE})
public @interface TypeUseAnon2 {
}
@Target({ElementType.TYPE_USE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
public @interface TypeUseAnon3 {
}