zig/test/behavior/bugs/1025.zig
Andrew Kelley 4307436b99 move behavior tests from test/stage1/ to test/
And fix test cases to make them pass. This is in preparation for
starting to pass behavior tests with self-hosted.
2021-04-29 15:54:04 -07:00

13 lines
166 B
Zig

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