1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 12:51:52 +03:00
semantic/semantic-python/test/fixtures/2-07-closure-over-scope.py
2019-10-11 11:50:22 -04:00

12 lines
262 B
Python

# CHECK-JQ: .scope.zilch[0].b[0].span == { start: [8, 8], end: [ 8, 16 ] }
# CHECK-JQ: .scope.result[0].a[0].span == { start: [5, 8], end: [ 5, 16 ] }
def const(a, b):
def result():
return a
def zilch(b):
return b
return result()