A simple yield should not cause an error, fixes #1117

This commit is contained in:
Dave Halter
2018-05-23 09:56:40 +02:00
parent d10eff5625
commit 50812b5836
2 changed files with 13 additions and 1 deletions

View File

@@ -208,6 +208,14 @@ def x():
#? int()
next(x())
# -----------------
# statements
# -----------------
def x():
foo = yield
#?
foo
# -----------------
# yield from
# -----------------