Add error code for return outside function.

This commit is contained in:
Dave Halter
2017-07-20 00:20:22 +02:00
parent d21504e2ca
commit 9c4bf8cec4
6 changed files with 21 additions and 15 deletions

View File

@@ -69,6 +69,7 @@ def test_indentation_errors(code, positions):
'''), # 'continue' not supported inside 'finally' clause"
'continue',
'break',
'return',
# IndentationError
' foo',