tcontinue.nim 359 B

1234567891011121314151617181920212223242526272829
  1. discard """
  2. output: "came here"
  3. """
  4. var i = 0
  5. while i < 400:
  6. if i == 10: break
  7. elif i == 3:
  8. inc i
  9. continue
  10. inc i
  11. var f = "failure"
  12. var j = 0
  13. while j < 300:
  14. for x in 0..34:
  15. if j < 300: continue
  16. if x == 10:
  17. echo "failure: should never happen"
  18. break
  19. f = "came here"
  20. break
  21. if i == 10:
  22. echo f
  23. else:
  24. echo "failure"