all: zig fmt and rename "@XToY" to "@YFromX"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
committed by
Andrew Kelley
parent
a6c8ee5231
commit
50339f595a
@@ -1,13 +1,21 @@
|
||||
const A = struct { b : B, };
|
||||
const B = struct { c : C, };
|
||||
const C = struct { a : A, };
|
||||
export fn entry() usize { return @sizeOf(A); }
|
||||
const A = struct {
|
||||
b: B,
|
||||
};
|
||||
const B = struct {
|
||||
c: C,
|
||||
};
|
||||
const C = struct {
|
||||
a: A,
|
||||
};
|
||||
export fn entry() usize {
|
||||
return @sizeOf(A);
|
||||
}
|
||||
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
//
|
||||
// :1:11: error: struct 'tmp.A' depends on itself
|
||||
// :3:20: note: while checking this field
|
||||
// :2:20: note: while checking this field
|
||||
// :1:20: note: while checking this field
|
||||
// :8:5: note: while checking this field
|
||||
// :5:5: note: while checking this field
|
||||
// :2:5: note: while checking this field
|
||||
|
||||
Reference in New Issue
Block a user