mirror of
https://github.com/ziglang/zig.git
synced 2025-12-31 10:33:19 +00:00
And fix test cases to make them pass. This is in preparation for starting to pass behavior tests with self-hosted.
13 lines
204 B
Zig
13 lines
204 B
Zig
const Foo = struct {
|
|
usingnamespace Mixin;
|
|
};
|
|
|
|
const Mixin = struct {
|
|
pub fn two(self: Foo) void {}
|
|
};
|
|
|
|
test "container member access usingnamespace decls" {
|
|
var foo = Foo{};
|
|
foo.two();
|
|
}
|