1
0
forked from VimPlug/jedi

actually add tests for the flow analysis of variables.

This commit is contained in:
Dave Halter
2014-08-12 09:57:00 +02:00
parent 968bc45314
commit 469988be9c

View File

@@ -80,3 +80,31 @@ def elif_flows3(x):
#? int() set
elif_flows3(1)
# -----------------
# name resolution
# -----------------
a = list
def elif_name(x):
try:
if True:
a = 1
elif 0:
a = 1.0
else:
return ''
except ValueError:
a = x
return a
#? int() set
elif_name(set)
if 0:
a = ''
else:
a = int
#? int
a