summary refs log tree commit diff stats
path: root/tests/js/test1.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/test1.nim')
0 files changed, 0 insertions, 0 deletions
4d9b2f671 ^





64903e705 ^
4d9b2f671 ^

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 used (or discarded)"
  line: 10
"""

# bug #578

proc test: string =
  result = "blah"
  result[1 .. ^1]

echo test()