mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
13 lines
221 B
Nim
13 lines
221 B
Nim
discard """
|
|
errormsg: "expression 'result[1 .. BackwardsIndex(1)]' is of type 'string' and has to be used (or discarded)"
|
|
line: 10
|
|
"""
|
|
|
|
# bug #578
|
|
|
|
proc test: string =
|
|
result = "blah"
|
|
result[1 .. ^1]
|
|
|
|
echo test()
|