mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
23 lines
308 B
Python
23 lines
308 B
Python
def foo(n=0):
|
|
print("foo", n)
|
|
if n > 0:
|
|
foo(n-1) # $ pt,tt=foo
|
|
|
|
foo(1) # $ pt,tt=foo
|
|
|
|
|
|
def test():
|
|
def foo():
|
|
print("test.foo")
|
|
|
|
foo() # $ pt,tt=test.foo
|
|
|
|
|
|
class A(object):
|
|
def foo(self):
|
|
print("A.foo")
|
|
foo() # $ pt,tt=foo
|
|
|
|
a = A()
|
|
a.foo() # $ pt,tt=A.foo
|