mirror of
https://github.com/ziglang/zig.git
synced 2025-12-26 08:03:08 +00:00
Some tests are now failing due to debug info changes, some tests now pass due to improved compiler functionality.
16 lines
263 B
Zig
16 lines
263 B
Zig
const builtin = @import("builtin");
|
|
const Foo = struct {
|
|
usingnamespace Mixin;
|
|
};
|
|
|
|
const Mixin = struct {
|
|
pub fn two(self: Foo) void {
|
|
_ = self;
|
|
}
|
|
};
|
|
|
|
test "container member access usingnamespace decls" {
|
|
var foo = Foo{};
|
|
foo.two();
|
|
}
|