proc test(): bool =
      
      block okay:
        if true: break okay
        return false
      
      return true # Line 7 is here
    
    echo test()
    
    
    Run

This warning won't appear in previous versions: `test.nim(7, 3) Warning: 
unreachable code after 'return' statement or '{.noReturn.}' proc 
[UnreachableCode]`

This is incorrect; the code is reachable.

Reply via email to