zig/test/behavior/bugs/1500.zig
2022-10-25 05:11:28 -04:00

16 lines
233 B
Zig

const builtin = @import("builtin");
const A = struct {
b: B,
};
const B = *const fn (A) void;
test "allow these dependencies" {
var a: A = undefined;
var b: B = undefined;
if (false) {
a;
b;
}
}