blob: 742670cc1612921ba260bc49d2371ab3593a2756 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
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()
|