zig/test/behavior/bugs/1500.zig
2023-09-23 12:36:56 -07: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;
}
}