t22604.nim 525 B

123456789101112131415161718192021222324252627282930313233343536
  1. # if
  2. for i in 0..<1:
  3. let x =
  4. case false
  5. of true:
  6. 42
  7. of false:
  8. if true:
  9. continue
  10. else:
  11. raiseAssert "Won't get here"
  12. # nested case
  13. for i in 0..<1:
  14. let x =
  15. case false
  16. of true:
  17. 42
  18. of false:
  19. case true
  20. of true:
  21. continue
  22. of false:
  23. raiseAssert "Won't get here"
  24. # try except
  25. for i in 0..<1:
  26. let x =
  27. case false
  28. of true:
  29. 42
  30. of false:
  31. try:
  32. continue
  33. except:
  34. raiseAssert "Won't get here"