summary refs log tree commit diff stats
path: root/tests/overload/t19737.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/overload/t19737.nim')
-rw-r--r--tests/overload/t19737.nim15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/overload/t19737.nim b/tests/overload/t19737.nim
new file mode 100644
index 000000000..b33ba9d8b
--- /dev/null
+++ b/tests/overload/t19737.nim
@@ -0,0 +1,15 @@
+# issue #19737
+
+import ./m19737
+
+var m: seq[uint64]
+
+proc foo(x: bool) = discard
+
+proc test[T: uint64|uint32](s: var seq[T]) =
+  var tmp = newSeq[T](1)
+  s = newSeq[T](1)
+
+  foo s[0] > tmp[0]
+
+test(m)