We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0ee3c2 commit ac74183Copy full SHA for ac74183
1 file changed
Lib/test/test_syntax.py
@@ -398,6 +398,16 @@
398
Traceback (most recent call last):
399
SyntaxError: case statement must be inside match statement
400
401
+>>> if some:
402
+... case 1: ...
403
+Traceback (most recent call last):
404
+SyntaxError: case statement must be inside match statement
405
+
406
+>>> case some:
407
408
409
410
411
# But prefixes of soft keywords should
412
# still raise specialized errors
413
0 commit comments