1
0
forked from VimPlug/jedi

Fix a very complicated issue with comprehensions.

This commit is contained in:
Dave Halter
2015-03-03 12:56:48 +01:00
parent 1520ebf557
commit 96add84459
2 changed files with 17 additions and 3 deletions

View File

@@ -135,6 +135,12 @@ a = [a for a in [1]]
#? int()
a[0]
y = 1.0
# Should not leak.
[y for y in [3]]
#? float()
y
a = [a for a in (1, 2)]
#? int()
a[0]
@@ -229,6 +235,14 @@ left, right = (i for i in
#? str()
left
# -----------------
# name resolution in comprehensions.
# -----------------
def x():
#? 22
[a for a in h if hio]
if hio: pass
# -----------------
# ternary operator