t18823.nim 111 B

1234567
  1. type BitsRange[T] = range[0..sizeof(T)*8-1]
  2. proc bar[T](a: T; b: BitsRange[T]) =
  3. discard
  4. bar(1, 2.Natural)