v/vlib/v/gen/js/tests/hello/hello.v

31 lines
293 B
V

module hello
pub const (
hello = 'Hello'
)
pub struct Aaa {
pub mut:
foo string
}
pub fn (mut a Aaa) update(s string) {
a.foo = s
}
struct Bbb {}
pub enum Ccc {
a
b = 5
c
}
pub fn debugger() string {
v := Bbb{}
return hello
}
pub fn excited() string {
return debugger() + "!"
}