# List, Array, Set, Dict literals not dynamic if all are explict Object type # Ticket 176 class X def main a = 'aoeu' to Object b = 5 to Object # list l = [a, b] # List x = l[0] y = l[1] assert x.length == 4 # .error. type is "Object" assert y*2 == 10 # .error. Cannot apply STAR to Object and int # array l2 = @[a, b] # List x1 = l2[0] y1 = l2[1] assert x1.length == 4 # .error. type is "Object" assert y1*2 == 10 # .error. Cannot apply STAR to Object and int # dict d = {0: a, 1: b} # Dict x2 = d[0] y2 = d[1] assert x2.length == 4 # .error. type is "Object" assert y2 * 2 == 10 # .error. Cannot apply STAR to Object and int