Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Foo = @import("test2.zig").Foo;
- // pub const Foo = struct {
- // bar: u32,
- //
- // fn notPub(f: Foo) u32 {
- // return f.bar;
- // }
- // };
- test "not pub" {
- const x = Foo { .bar = 10 };
- const y = x.notPub();
- }
Advertisement
Add Comment
Please, Sign In to add comment