summary refs log tree commit diff stats
path: root/tests/converter/t21531.nim
blob: b0198684d7993e6f60e41d23fc8152fe78db16b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import std/typetraits

type Foo* = distinct string

converter toBase*(headers: var Foo): var string =
  headers.distinctBase

proc bar*(headers: var Foo) =
  for x in headers: discard