A simple yield should not cause an error, fixes #1117
This commit is contained in:
1 parent
d10eff5625
commit
50812b5836
2 files changed
+13
-1
No files matched your search
@@ -208,6 +208,14 @@ def x():
|
||||
#? int()
|
||||
next(x())
|
||||
|
||||
# -----------------
|
||||
# statements
|
||||
# -----------------
|
||||
def x():
|
||||
foo = yield
|
||||
#?
|
||||
foo
|
||||
|
||||
# -----------------
|
||||
# yield from
|
||||
# -----------------
|
||||
|
||||
Reference in new issue
Block a user