Files
Nim/tests/errmsgs/tcall_with_default_arg.nim

19 lines
290 B
Nim

discard """
outputsub: '''tcall_with_default_arg.nim(8) fail'''
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")