Details
Description
Currently, Boo will merrily compile the following without warning:
def bar():
if true:
print 'alacazam!'
else:
print 'the great unreachable code block'
It would be nice if Boo have had branch optimization code to remove such statically unreachable branches and warn about this with BCW0015.
do not forget about unreachable labels (which do not currently issue warnings)
def Test():
goto failed_match
:failed_match
print "test"
return 1
:unreachable
return 2
there is no goto to 'unreachable' label so this should warn.