This commit is contained in:
Araq 2013-08-30 22:47:14 +02:00
commit 4d9b2f671a
4 changed files with 25 additions and 13 deletions

View file

@ -0,0 +1,12 @@
discard """
line: 10
errormsg: "value returned by statement has to be discarded"
"""
# bug #578
proc test: string =
result = "blah"
result[1 .. -1]
echo test()