zig/test/behavior/bugs/1025.zig
Jakub Konka 9981b3fd2f stage2: tiny improvements all over the place
* pass more x64 behavior tests
* return with a TODO error when lowering a decl with no runtime bits
* insert some debug logs for tracing recursive descent down the
type-value tree when lowering types
* print `Decl`'s name when print debugging `decl_ref` value
2022-02-08 21:00:07 +01:00

15 lines
207 B
Zig

const builtin = @import("builtin");
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);
}