Add test case for #3766 (#11252)

This commit is contained in:
Oscar Nihlgård
2019-05-15 08:22:45 +02:00
committed by Andreas Rumpf
parent 6b2ed28d55
commit bc0f2f0dd2

View File

@@ -41,3 +41,17 @@ type E = enum a, b, c
reject:
const e = E(4)
block: # issue 3766
type R = range[0..2]
reject:
type
T[n: static[R]] = object
V = T[3.R]
reject:
proc r(x: static[R]) =
echo x
r 3.R