1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00
semantic/semantic-python/test/fixtures/2-03-return-in-if-statement.py
2019-09-23 11:56:40 -04:00

7 lines
129 B
Python

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