mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 06:20:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user