allow omitting stmts using finally as post expr blocks; make it consistent with else, except etc. (#21361)
allow omitting stmts using `finally` as post expr blocks
This commit is contained in:
parent
684c3b3aeb
commit
406d302131
2 changed files with 12 additions and 1 deletions
|
|
@ -498,6 +498,13 @@ StmtList
|
|||
StmtList
|
||||
DiscardStmt
|
||||
Empty
|
||||
|
||||
Call
|
||||
Ident "foo"
|
||||
Finally
|
||||
StmtList
|
||||
DiscardStmt
|
||||
Empty
|
||||
'''
|
||||
"""
|
||||
|
||||
|
|
@ -655,3 +662,7 @@ dumpTree:
|
|||
discard
|
||||
finally:
|
||||
discard
|
||||
|
||||
foo:
|
||||
finally:
|
||||
discard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue