1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/semantic-python/test/fixtures/2-03-return-in-if-statement.py

8 lines
235 B
Python
Raw Normal View History

# CHECK-JQ: .tree.contents[0][1].contents[1] | .tag == "Lam" and .contents.value.tag == "If"
2019-09-18 19:35:54 +03:00
# CHECK-JQ: .tree.contents[0][1].contents[1].contents.value | .contents[2].tag == "Unit"
def foo(a):
if a: return a
return ()
()