zig/test/behavior/bugs/3367.zig
2021-06-21 17:03:03 -07:00

15 lines
227 B
Zig

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();
}