summary refs log tree commit diff stats
path: root/tests/range/tsubrange3.nim
blob: 600161cfd4c1a342b3bb177b2889f59a06289c91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
discard """
  file: "tsubrange.nim"
  outputsub: "value out of range: 50 [RangeError]"
  exitcode: "1"
"""

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

#p y