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

7 lines
129 B
Python
Raw Normal View History

# CHECK-TREE: { foo <- \a -> if a then a else #unit; #record { foo: foo } }
def foo(a):
if a: return a
return ()
()