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

This commit is contained in:
Dave Halter committed 2018-05-23 11:12:19 +02:00
1 parent d10eff5625
commit 50812b5836
2 files changed
+13 -1

No files matched your search

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