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
2019-10-11 11:50:22 -04:00

8 lines
218 B
Python

# 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