source: java2python/core/src/test/cyclicref/testcode/P.java

Last change on this file was 1193, checked in by wouter, 7 weeks ago

#375 added comment

File size: 365 bytes
Line 
1package testcode;
2
3import tudelft.annotations.Defer;
4
5/**
6 * Test translation of cyclic refs. P refers to Q which refers to P.
7 */
8public 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.