mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-28 18:24:01 +00:00
11
tests/sets/m17385.nim
Normal file
11
tests/sets/m17385.nim
Normal file
@@ -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
|
||||
|
||||
4
tests/sets/t17385.nim
Normal file
4
tests/sets/t17385.nim
Normal file
@@ -0,0 +1,4 @@
|
||||
import m17385
|
||||
|
||||
let a = Diff[int]()
|
||||
a.test()
|
||||
Reference in New Issue
Block a user