Debian Codegraph @

framework/tests/whole-program-inference/non-annotated/IgnoreMetaAnnotationTest1.java

raw
1 import testlib.wholeprograminference.qual.Sibling1;
2
3 // See ExpectedErrors#IgnoreMetaAnnotationTest2
4 class IgnoreMetaAnnotationTest1 {
5
6 int field2;
7
8 void foo() {
9 field2 = getSibling1();
10 }
11
12 void test() {
13 // :: error: (argument.type.incompatible)
14 expectsSibling1(field2);
15 }
16
17 void expectsSibling1(@Sibling1 int t) {}
18
19 static @Sibling1 int getSibling1() {
20 return 0;
21 }
22 }