fork download
  1. parallel:
  2. var i = 0
  3. while i <= a.high:
  4. spawn f(a[i])
  5. spawn f(a[i+1])
  6. # ERROR: cannot prove a[i] is disjoint from a[i+1]
  7. # BUT: replace 'i += 1' with 'i += 2' and the code compiles!
  8. i += 1
Compilation error #stdin compilation error #stdout 0.01s 2124KB
stdin
Standard input is empty
compilation info
prog.nim(1, 8) Error: undeclared identifier: 'parallel'
stdout
Standard output is empty