zig/test/behavior/bugs/3367.zig
2022-02-27 21:38:56 +01:00

18 lines
405 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" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
var foo = Foo{};
foo.two();
}