File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 387387Traceback (most recent call last):
388388SyntaxError: cannot use case statement with ellipsis
389389
390+ >>> match ...:
391+ ... case 1 // 2: ...
392+ Traceback (most recent call last):
393+ SyntaxError: cannot use case statement with expression
394+
395+ >>> match ...:
396+ ... case {1, 2, 3}: ...
397+ Traceback (most recent call last):
398+ SyntaxError: cannot use case statement with set display
399+
400+ >>> match ...:
401+ ... case a[0]: ...
402+ Traceback (most recent call last):
403+ SyntaxError: cannot use case statement with subscript
404+
405+ >>> match ...:
406+ ... case a[0].method(): ...
407+ Traceback (most recent call last):
408+ SyntaxError: cannot use case statement with function call
409+
390410# But prefixes of soft keywords should
391411# still raise specialized errors
392412
You can’t perform that action at this time.
0 commit comments