aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bugs/3367.zig
blob: bd289af2b477dd8e238ed7dee65ebe0b514e7f56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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" {
    if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
    var foo = Foo{};
    foo.two();
}