Guest User

Untitled

a guest
Jul 9th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. const Foo = @import("test2.zig").Foo;
  2. // pub const Foo = struct {
  3. // bar: u32,
  4. //
  5. // fn notPub(f: Foo) u32 {
  6. // return f.bar;
  7. // }
  8. // };
  9. test "not pub" {
  10. const x = Foo { .bar = 10 };
  11. const y = x.notPub();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment