mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-08 14:03:23 +00:00
* fix #18823 Passing Natural to bitops.BitsRange[T] parameter in generic proc is compile error
7 lines
111 B
Nim
7 lines
111 B
Nim
type BitsRange[T] = range[0..sizeof(T)*8-1]
|
|
|
|
proc bar[T](a: T; b: BitsRange[T]) =
|
|
discard
|
|
|
|
bar(1, 2.Natural)
|