| 1 | module hello |
| 2 | |
| 3 | import v.gen.js.tests.hello.hello1 |
| 4 | |
| 5 | pub const hello = 'Hello' |
| 6 | |
| 7 | pub struct Aaa { |
| 8 | pub mut: |
| 9 | foo string |
| 10 | } |
| 11 | |
| 12 | pub fn (mut a Aaa) update(s string) { |
| 13 | a.foo = s |
| 14 | } |
| 15 | |
| 16 | struct Bbb {} |
| 17 | |
| 18 | pub enum Ccc { |
| 19 | a |
| 20 | b = 5 |
| 21 | c |
| 22 | } |
| 23 | |
| 24 | pub fn debugger() string { |
| 25 | v := Bbb{} |
| 26 | return hello |
| 27 | } |
| 28 | |
| 29 | pub fn excited() string { |
| 30 | return '${hello1.nested()} ${debugger()}!' |
| 31 | } |
| 32 |