t21531.nim 189 B

1234567891011
  1. import std/typetraits
  2. type Foo* = distinct string
  3. converter toBase*(headers: var Foo): var string =
  4. headers.distinctBase
  5. proc bar*(headers: var Foo) =
  6. for x in headers: discard