1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00
semantic/semantic-python/test/fixtures/2-08-function-decorator.py

8 lines
218 B
Python
Raw Normal View History

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