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-07-closure-over-scope.py

12 lines
262 B
Python
Raw Normal View History

2019-10-11 18:50:22 +03:00
# 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()