mirror of
https://github.com/ziglang/zig.git
synced 2026-01-13 19:05:12 +00:00
And fix test cases to make them pass. This is in preparation for starting to pass behavior tests with self-hosted.
13 lines
166 B
Zig
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);
|
|
}
|