summary refs log blame commit diff stats
path: root/tests/range/tsubrange2.nim
blob: d14111bb93cc870da699bb0ca7f2df9207cdf499 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                        
                                                   






                       
         





           
discard """
  file: "tsubrange2.nim"
  outputsub: "value out of range: 50 [EOutOfRange]"
  exitcode: "1"
"""

type
  TRange = range[0..40]
  
proc p(r: TRange) =
  discard
  
var
  r: TRange
  y = 50
p y