summary refs log tree commit diff stats
path: root/tests/exprs/texprstmt.nim
blob: b32394d8d1c5a6a04f4ddd7b2c18b80478a6cb91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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()