# bug #2287 import threadPool # If `nums` is an array instead of seq, # NONE of the iteration ways below work (including high / len-1) let nums = @[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] proc log(n:int) = echo n proc main = parallel: for n in nums: # Error: cannot prove: i <= len(nums) + -1 spawn log(n) #for i in 0 ..