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

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