mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-28 19:47:08 +03:00
332eafeb7f
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);
|
|
}
|