Add checks for except: body blocks (#9191)

This commit is contained in:
Dheepak Krishnamurthy 2018-10-09 06:09:22 -06:00 • committed by Andreas Rumpf
commit 70018aa683
4 changed files with 42 additions and 2 deletions

View file

@ -0,0 +1,12 @@
discard """
errormsg: "Only one finally is allowed after all other branches"
"""
try:
discard
finally:
discard
finally:
discard