v2 / vlib / v / checker / tests / redfine_global_const_fn_names.vv
26 lines · 19 sloc · 251 bytes · e104a5f571107323ade881a064326088d5e3d174
Raw
1@[has_globals]
2module main
3
4__global abc = 1
5
6@[export: 'abc']
7const abc1 = 2
8
9@[export: 'abc']
10const abc2 = 3
11
12@[export: 'fn1']
13fn fn_abc1() {
14}
15
16@[export: 'fn1']
17fn fn_abc2() {
18}
19
20@[export: 'abc.dd']
21fn fn_abc3() {
22}
23
24@[export: xyz]
25fn fn_xyz() {
26}
27