1#unittest {
2 name: "Test function declaration.";
3 note: "Crash in f1 with 'return a+b;'"
4 result: 30;
5};
6
7func f1() {
8 var a, b;
9 var c = func() {return 10;};
10
11 a = 10;
12 b = 20;
13 return c();
14}
15
16func main() {
17 var a = 10;
18 const b = 20;
19 return a + b;
20}