mirror of
https://github.com/ziglang/zig.git
synced 2025-12-10 16:23:07 +00:00
* 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
15 lines
207 B
Zig
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);
|
|
}
|