* fixes #14444; add `genLineDir` before raises * add a test case * fixes differently
This commit is contained in:
parent
e602ebeb66
commit
705da9d452
2 changed files with 15 additions and 0 deletions
14
tests/errmsgs/t14444.nim
Normal file
14
tests/errmsgs/t14444.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue