Using a list comprehension with an array initializer fails with a type error, e.g:
a = array(short, [i ** 2 for i in range(10)])
==> BCE0022: Cannot convert 'Array-initModule.Main$2' to 'short'.
The following workaround does work, but it seems like the first form should work too:
l = [i ** 2 for i in range(10)]
a = array(short, l)
Bonus wish: Allow for array comprehensions where the above would simply be (i ** 2 for i in range(10)).