mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Python: Show getCallableForArgument can have multiple results
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
def foo(foo_x): # $tracked
|
||||
print("foo", foo_x) # $tracked
|
||||
|
||||
|
||||
def bar(bar_x): # $tracked
|
||||
print("bar", bar_x) # $tracked
|
||||
|
||||
|
||||
if len(__file__) % 2 == 0:
|
||||
f = foo
|
||||
else:
|
||||
f = bar
|
||||
|
||||
x = tracked # $tracked
|
||||
f(x) # $tracked
|
||||
Reference in New Issue
Block a user