Debian Codegraph @

src/test/01-Basic/187-return-ctrl-5.ck

raw
1 // test multiple semicolons after last statement in statement lists in fuctinos
2 // this is significant as the control path analysis looks at the last (non-null)
3 // statement and semicolons actually parse as NULL statements
4
5 public class Class
6 {
7 fun void foo()
8 {
9 // double semicolons
10 samp => now;;
11 }
12 }
13
14 fun void bar()
15 {
16 while( false )
17 {
18 // multiple semicolons
19 samp => now;;;;;;
20 }
21 }
22
23 // if no crash, then good lol
24 <<< "success" >>>;