[Differential] [Commented On] D4585: Simple unreachable-code detection

Francis Herne noreply at phabricator.kde.org
Mon Feb 13 09:06:07 UTC 2017


flherne added a comment.


  In the example above, the code isn't nonsensical or warned about, but we get it wrong anyway. ;-)
  
  The problem is that we ignore the implicit `return None` at the end of functions if there's /any/ explicit return statement, even if control-flow can still reach the end without hitting one.

REPOSITORY
  R53 KDevelop: Python Support

REVISION DETAIL
  https://phabricator.kde.org/D4585

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: flherne, brauch
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170213/9dbb217f/attachment.html>


More information about the KDevelop-devel mailing list