PY-1430 Recognize that 'assert False' breaks control flow

This commit is contained in:
Oleg Shpynov
2010-07-27 14:45:25 +04:00
parent 3422c0e859
commit 3ba7d3971c
11 changed files with 80 additions and 38 deletions
@@ -0,0 +1,4 @@
assert false
print("Unreachable")
assert False
print("Unreachable2")
@@ -0,0 +1,6 @@
0(1) element: null
1(5) READ ACCESS: false
2(3) element: PyPrintStatement
3(5) READ ACCESS: False
4(5) element: PyPrintStatement
5() element: null