framework/tests/whole-program-inference/non-annotated/MethodParameterInferenceTest.java
raw| 1 | import testlib.wholeprograminference.qual.*; |
| 2 | |
| 3 | // TODO: Like this one, some tests must verify that it contains the expected |
| 4 | // output after performing the whole-program inference. |
| 5 | public class MethodParameterInferenceTest { |
| 6 | void foo(int i) { |
| 7 | i = getSibling1(); // The type of i must be inferred to @Sibling1. |
| 8 | } |
| 9 | |
| 10 | @Sibling1 int getSibling1() { |
| 11 | return (@Sibling1 int) 0; |
| 12 | } |
| 13 | } |