texprstmt.nim 211 B

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