tunreachable2.nim 186 B

12345678910111213
  1. discard """
  2. matrix: "--warningAsError:UnreachableCode"
  3. """
  4. proc test(): bool =
  5. block okay:
  6. if true: break okay
  7. return false
  8. return true # Line 7 is here
  9. doAssert test()