1#unittest { 2 name: "Upvalue closure."; 3 error: NONE; 4 result: 230; 5}; 6 7func f1(a) { 8 return func(b) { 9 return func (c) { 10 return c + b * a; 11 } 12 } 13} 14 15func main() { 16 var f = f1(10); 17 var f2 = f(20)(30); 18 return f2; 19} 20