texprstmt.nim 221 B

12345678910111213
  1. discard """
  2. errormsg: "expression 'result[1 .. BackwardsIndex(1)]' is of type 'string' and has to be used (or discarded)"
  3. line: 10
  4. """
  5. # bug #578
  6. proc test: string =
  7. result = "blah"
  8. result[1 .. ^1]
  9. echo test()