tunamedbreak.nim 429 B

12345678910111213141516
  1. discard """
  2. cmd: "nim check $file"
  3. action: "reject"
  4. nimout: '''
  5. tunamedbreak.nim(12, 5) Error: Using an unnamed break in a block is deprecated; Use a named block with a named break instead [UnnamedBreak]
  6. tunamedbreak.nim(15, 3) Error: Using an unnamed break in a block is deprecated; Use a named block with a named break instead [UnnamedBreak]
  7. '''
  8. """
  9. for i in 1..2: # errors
  10. block:
  11. break
  12. block: # errors
  13. break