zig/test/behavior/bugs/3367.zig
Andrew Kelley 4307436b99 move behavior tests from test/stage1/ to test/
And fix test cases to make them pass. This is in preparation for
starting to pass behavior tests with self-hosted.
2021-04-29 15:54:04 -07:00

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