diff options
Diffstat (limited to 'tests/functional/y/yield_outside_func.py')
-rw-r--r-- | tests/functional/y/yield_outside_func.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/functional/y/yield_outside_func.py b/tests/functional/y/yield_outside_func.py new file mode 100644 index 000000000..5824bc0c7 --- /dev/null +++ b/tests/functional/y/yield_outside_func.py @@ -0,0 +1,4 @@ +"""This is gramatically correct, but it's still a SyntaxError""" +yield 1 # [yield-outside-function] + +LAMBDA_WITH_YIELD = lambda: (yield) |