| 1 | module test |
| 2 | |
| 3 | const x = 10 |
| 4 | const y = 100 |
| 5 | const z = 1000 |
| 6 | |
| 7 | pub enum Public { |
| 8 | importable |
| 9 | shareable |
| 10 | } |
| 11 | |
| 12 | enum Private { |
| 13 | storable |
| 14 | downloadable |
| 15 | } |
| 16 | |
| 17 | interface Drinker { |
| 18 | drink(int) string |
| 19 | } |
| 20 | |
| 21 | pub fn sprint(dkr Drinker) { |
| 22 | println(drk.drink(6)) |
| 23 | } |
| 24 | |
| 25 | fn some_function_name(foo string, bar int) string { |
| 26 | return 'baz' |
| 27 | } |
| 28 |