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

           
                                                                                                     





                   
                 

           
discard """
  line: 10
  errormsg: "expression 'result[1 .. -(len(result), 1)]' is of type 'string' and has to be discarded"
"""

# bug #578

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

echo test()