Nim/tests/errmsgs/t14444.nim
ringabout 705da9d452
fixes #14444; add genLineDir before assignment (#21201)
* fixes #14444; add `genLineDir` before raises

* add a test case

* fixes differently
2022-12-29 17:06:57 +01:00

14 lines
No EOL
289 B
Nim

discard """
matrix: "--hints:off"
exitcode: "1"
output: '''
t14444.nim(13) t14444
fatal.nim(51) sysFatal
Error: unhandled exception: index out of bounds, the container is empty [IndexDefect]
'''
"""
when true: # bug #14444
var i: string
i[10] = 'j'
echo i