parent
67fd7a7f86
commit
63c28b973e
2 changed files with 41 additions and 41 deletions
|
|
@ -32,3 +32,11 @@ proc testTryAsExpr(i: int) =
|
|||
test[Exception]()
|
||||
test2()
|
||||
testTryAsExpr(5)
|
||||
|
||||
# see bug #7115
|
||||
doAssert(not compiles(
|
||||
try:
|
||||
echo 1
|
||||
except [KeyError as ex1, ValueError as ex2]:
|
||||
echo 2
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue