Files
Nim/tests/js/t12223.nim
2019-10-24 11:17:01 +02:00

20 lines
266 B
Nim

discard """
action: "run"
output: '''
caught
index out of bounds, the container is empty
'''
"""
proc fun() =
var z: seq[string]
discard z[4]
proc main()=
try:
fun()
except Exception as e:
echo "caught"
echo getCurrentExceptionMsg()
main()