| 1 | const A = struct { |
| 2 | b: B, |
| 3 | }; |
| 4 | const B = struct { |
| 5 | c: C, |
| 6 | }; |
| 7 | const C = struct { |
| 8 | a: A, |
| 9 | }; |
| 10 | export fn entry() usize { |
| 11 | return @sizeOf(A); |
| 12 | } |
| 13 | |
| 14 | // error |
| 15 | // |
| 16 | // error: dependency loop with length 3 |
| 17 | // :2:8: note: type 'tmp.A' depends on type 'tmp.B' for field declared here |
| 18 | // :5:8: note: type 'tmp.B' depends on type 'tmp.C' for field declared here |
| 19 | // :8:8: note: type 'tmp.C' depends on type 'tmp.A' for field declared here |
| 20 | // note: eliminate any one of these dependencies to break the loop |