1#unittest { 2 name: "Array of objects."; 3 result: 20; 4}; 5 6class c1 { 7 var a = 10; 8} 9 10class c2 { 11 var a = 20; 12} 13 14class c3 { 15 var a = 30; 16} 17 18func main() { 19 var r = [c1(), c2(), c3()]; 20 return r[1].a; 21}