val j = List(1, 2, 3)
But that's beside the point—OP was pointing out that you can't have generic allocation.