| 1 | module amod |
| 2 | |
| 3 | pub struct Xyz { |
| 4 | pub: |
| 5 | x int |
| 6 | } |
| 7 | |
| 8 | pub struct Bcg { |
| 9 | x int |
| 10 | } |
| 11 | |
| 12 | pub struct Bcg2[T] { |
| 13 | x int |
| 14 | } |
| 15 | |
| 16 | @[params] |
| 17 | pub struct FooParams { |
| 18 | bar string |
| 19 | } |
| 20 | |
| 21 | pub fn foo(opts FooParams) {} |
| 22 | |
| 23 | struct PrivateFoo { |
| 24 | pub: |
| 25 | bar int |
| 26 | } |
| 27 | |
| 28 | pub fn new_private_foo(bar int) PrivateFoo { |
| 29 | return PrivateFoo{ |
| 30 | bar: bar |
| 31 | } |
| 32 | } |
| 33 |