tsetiter1.nim 205 B

123456789101112131415161718
  1. # comment on issue #11167
  2. import hashes
  3. import msetiter1
  4. type
  5. Choice = object
  6. i: int
  7. proc hash(c: Choice): Hash =
  8. result = Hash(c.i)
  9. var h = initH[Choice]()
  10. let c = @[Choice(i: 1)]
  11. foo(h, c)