summary refs log blame commit diff stats
path: root/tests/effects/teffects8.nim
blob: fb3c088d6cf6058ebff4fd58c8ec05a70f44e6a3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                        
discard """
  errormsg: "can raise an unlisted exception: Exception"
  line: 10
"""

proc foo() {.raises: [].} =
  try:
    discard
  except ValueError:
    raise

foo()