Zig Version
0.11.0-dev.1329+37424fd11
Steps to Reproduce and Observed Behavior
zig test test.zig:
pubconstA=struct {
field: B=undefined,
};
pubconstB=struct {
field: *constfn (*A) void,
};
test {
vara: usize=@sizeOf(B);
_=a;
}Some notes:
- Must be runtime, comptime works fine (var vs const)
- Must be function pointer, regular pointer to *A works fine
- Must have initializer on A's field
Expected Behavior
No error.
Zig Version
0.11.0-dev.1329+37424fd11
Steps to Reproduce and Observed Behavior
zig test test.zig:Some notes:
Expected Behavior
No error.