1
1
mirror of https://github.com/github/semantic.git synced 2024-12-28 09:21:35 +03:00
semantic/semantic-python/test/fixtures/2-08-function-decorator.py

8 lines
249 B
Python
Raw Normal View History

# CHECK-TREE: { passthru <- rec passthru = \x -> x; decorated <- rec decorated = \x -> x; decorated = passthru(decorated); #record { passthru: passthru, decorated: decorated }}
2019-10-11 18:50:22 +03:00
def passthru(x):
return x
@passthru
def decorated(x):
return x