texplicitvarconv.nim 159 B

1234567891011121314
  1. # related to issue #24032
  2. proc `++`(n: var int) =
  3. n += 1
  4. type
  5. r = range[ 0..15 ]
  6. var a: r = 14
  7. ++int(a) # this should be mutable
  8. doAssert a == 15