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