Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
gen
/
js
/
tests
/
enum.v
19
lines
·
16
sloc
·
225 bytes
·
f77bb32044c5130e9f0aeac26e72443a5fe9dc75
Raw
1
import
v.gen.js.tests.hello
2
3
enum
Test {
4
foo = 2
5
bar = 5
6
baz
7
}
8
9
// TODO: Remove `fn main` once vet supports scripts
10
fn
main() {
11
mut
a := hello.Ccc.a
12
a = .b
13
a = .c
14
println(a)
15
16
mut
b := Test.foo
17
b = .bar
18
println(b)
19
}
20