source:
java2python/core/src/test/cyclicref/testcode/P.java
Last change on this file was 1193, checked in by , 7 weeks ago | |
---|---|
File size: 365 bytes |
Line | |
---|---|
1 | package testcode; |
2 | |
3 | import tudelft.annotations.Defer; |
4 | |
5 | /** |
6 | * Test translation of cyclic refs. P refers to Q which refers to P. |
7 | */ |
8 | public class P { |
9 | |
10 | private @Defer Q q = null; |
11 | |
12 | public void join(@Defer Q q) { |
13 | this.q = q; |
14 | } |
15 | |
16 | public void arraytest() { |
17 | // note, new Q[4] creates [null,null,null,null] so Q not needed here |
18 | final @Defer Q[] q = new Q[4]; |
19 | } |
20 | |
21 | } |
Note:
See TracBrowser
for help on using the repository browser.