v2 / vlib / v / fmt / tests / empty_lines_expected.vv
30 lines · 20 sloc · 345 bytes · 5d0af69bfd6a6e5003dac7fe99d1ab8745c8f84f
Raw
1type MyInt = int
2type EmptyLineAfterLastType = fn () int
3
4struct EmptyLineAfterStructs {}
5
6fn empty_line_after_functions() {}
7
8fn squash_multiple_empty_lines() {
9 println('a')
10
11 println('b')
12
13 dump('c')
14
15 c := 0
16
17 d := 0
18}
19
20fn remove_leading_and_trailing_empty_lines() {
21 println('a')
22
23 println('b')
24
25 if test {
26 c := 0
27 } else {
28 d := 0
29 }
30}
31