Files
Nim/tests/exprs/texprstmt.nim
2017-03-26 20:24:06 +02:00

13 lines
211 B
Nim

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()