mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-28 19:47:08 +03:00
a06e9eca45
* airSlice * airArrayToSlice * and initial support for airSlicePtr and co
17 lines
331 B
Zig
17 lines
331 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_c) return error.SkipZigTest;
|
|
var foo = Foo{};
|
|
foo.two();
|
|
}
|