Files
openide/plugins/kotlin/idea/tests/testData/kotlinAndJavaChecker/javaAgainstKotlin/KotlinAnnotations.java
Bas Leijdekkers a35a9f91ba Java: improve error highlighting for unknown annotation method
GitOrigin-RevId: 6fdb6e2f397280cf4795cbd09ddcc1461a5897ff
2024-07-30 22:37:25 +00:00

27 lines
811 B
Java

class KotlinAnnotations {
@<error descr="'d' missing though required">k.Anno1</error>()
@<error descr="'c', 'g' missing though required">k.Anno2</error>()
public static void m1() {
}
@<error descr="'d' missing though required">k.Anno1</error>(c = 3)
@<error descr="'g' missing though required">k.Anno2</error>(c = 3)
public static void m2() {
}
@k.Anno1(d = 5)
@<error descr="'c' missing though required">k.Anno2</error>(g = "asdas")
public static void m3() {
}
@k.Anno1(c = 1, d = 5)
@k.Anno2(c = {6, 5}, g = "asdas")
public static void m4() {
}
@k.Anno1(<error descr="Cannot find @interface method 'x()'">x = 1</error>)
@k.Anno2(<error descr="Cannot find @interface method 'x()'">x = 2</error>)
public static void m5() {
}
}