v2 / cmd / tools / vdoc / testdata / unsorted / main.v
20 lines · 15 sloc · 303 bytes · 8eaaba6094456bb21833fddf20d22514e7dadcb2
Raw
1pub const omega = 3 // should be first
2
3pub const alpha = 5 // should be in the middle
4
5pub const beta = 2 // should be at the end
6
7// def - should be first
8pub fn def() {
9 println(1)
10}
11
12// xyz - should be in the middle
13pub fn xyz() {
14 println(2)
15}
16
17// abc - should be last
18pub fn abc() {
19 println(3)
20}
21