Zig Version
0.11.0-dev.923+a52dcdd3c
Steps to Reproduce and Observed Behavior
Possibly related #14005
Observed Behavior:
error: struct'GLib.SListNullable'dependsonitselfpubconstSListNullable=packedstruct {
~~~~~~~^~~~~~referencedby:
SListImpl: /home/chief/workplace/gir-zig/generate/output/GLib.zig:8243:30SListNullable: /home/chief/workplace/gir-zig/generate/output/GLib.zig:8250:17SListNullable: /home/chief/workplace/gir-zig/generate/output/GLib.zig:8249:34SListImpl: /home/chief/workplace/gir-zig/generate/output/GLib.zig:8247:15Related code
pubconstSListImpl=externstruct { // L8243/// read write Data: ?*anyopaque,
/// read write Next: core.SListNullable, // L8247
};
pubconstSListNullable=packedstruct { // L8249instance: ?*SListImpl, // L8250pubfnnew(self: ?SList) SListNullable {
return .{ .instance=if (self) |some|some.instanceelsenull };
}
pubfnget(self: SListNullable) ?SList {
returnif (self.instance) |some|SList{ .instance=some } elsenull;
}
};I failed to narrow down this. If extracted into small files, it behaves correctly. Maybe there is something to do with the file size.
Possibly related infomation
// GLib.zigconstcore=@import("core.zig");
// core.zigconstGLib=@import("GLib.zig");
pubusingnamespaceGLib;Expected Behavior
No error
Zig Version
0.11.0-dev.923+a52dcdd3c
Steps to Reproduce and Observed Behavior
Possibly related #14005
Observed Behavior:
Related code
I failed to narrow down this. If extracted into small files, it behaves correctly. Maybe there is something to do with the file size.
Possibly related infomation
Expected Behavior
No error