diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/generics/t18823.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/generics/t18823.nim b/tests/generics/t18823.nim new file mode 100644 index 000000000..94c79aebe --- /dev/null +++ b/tests/generics/t18823.nim @@ -0,0 +1,6 @@ +type BitsRange[T] = range[0..sizeof(T)*8-1] + +proc bar[T](a: T; b: BitsRange[T]) = + discard + +bar(1, 2.Natural) |