summary refs log blame commit diff stats
path: root/tests/exprs/texprstmt.nim
blob: 355da240737a5add1ae9c497a2208e6139030fd2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

           
                                                        








                   
discard """
  line: 10
  errormsg: "value of type 'string' has to be discarded"
"""

# bug #578

proc test: string =
  result = "blah"
  result[1 .. -1]

echo test()