mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 03:03:09 +00:00
Ran into a design flaw here which will need to get solved by having AstGen annotate ZIR with which instructions are closed over.
14 lines
194 B
Zig
14 lines
194 B
Zig
const std = @import("std");
|
|
|
|
const A = struct {
|
|
pub const B = bool;
|
|
};
|
|
|
|
const C = struct {
|
|
usingnamespace A;
|
|
};
|
|
|
|
test "basic usingnamespace" {
|
|
try std.testing.expect(C.B == bool);
|
|
}
|