Lineinfo fix (#10871)

This commit is contained in:
Arne Döring 2019-03-21 06:54:42 +01:00 • committed by Andreas Rumpf
commit 3794338aba
3 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,18 @@
discard """
outputsub: '''tcall_with_default_arg.nim(16) anotherFoo'''
exitcode: 1
"""
# issue: #5604
proc fail() =
raise newException(ValueError, "dead")
proc getDefault(): int = 123
proc bar*(arg1: int = getDefault()) =
fail()
proc anotherFoo(input: string) =
bar()
anotherFoo("123")