summary refs log tree commit diff stats
path: root/tests/sets/m17385.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sets/m17385.nim')
-rw-r--r--tests/sets/m17385.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/sets/m17385.nim b/tests/sets/m17385.nim
new file mode 100644
index 000000000..3919e067a
--- /dev/null
+++ b/tests/sets/m17385.nim
@@ -0,0 +1,11 @@
+import std/sets
+
+type
+  Diff*[T] = object
+    data: T
+
+proc test*[T](diff: Diff[T]) =
+  var bPopular = initHashSet[T]()
+  for element in bPopular.items():
+    echo element
+