zig/test/behavior/bugs/1500.zig
2021-06-21 17:03:03 -07:00

15 lines
190 B
Zig

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