summary refs log tree commit diff stats
path: root/tests/range/texplicitvarconv.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/range/texplicitvarconv.nim')
-rw-r--r--tests/range/texplicitvarconv.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/range/texplicitvarconv.nim b/tests/range/texplicitvarconv.nim
new file mode 100644
index 000000000..8da8a8878
--- /dev/null
+++ b/tests/range/texplicitvarconv.nim
@@ -0,0 +1,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