summary refs log tree commit diff stats
path: root/tests/range/texplicitvarconv.nim
blob: 8da8a88787c61c15098ffbdf97d36161d35862c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# related to issue #24032

proc `++`(n: var int) =
    n += 1

type
    r = range[ 0..15 ]

var a: r = 14

++int(a) # this should be mutable

doAssert a == 15