Files
Nim/tests/exprs/texprstmt.nim
2018-12-11 21:23:21 +01:00

13 lines
211 B
Nim

discard """
errormsg: "expression 'result[1 .. BackwardsIndex(1)]' is of type 'string' and has to be discarded"
line: 10
"""
# bug #578
proc test: string =
result = "blah"
result[1 .. ^1]
echo test()