zig/test/behavior/bugs/1025.zig

13 lines
170 B
Zig
Raw Normal View History

const A = struct {
B: type,
};
fn getA() A {
return A{ .B = u8 };
}
test "bug 1025" {
const a = getA();
try @import("std").testing.expect(a.B == u8);
}