parent
6b2ed28d55
commit
bc0f2f0dd2
1 changed files with 14 additions and 0 deletions
|
|
@ -41,3 +41,17 @@ type E = enum a, b, c
|
||||||
|
|
||||||
reject:
|
reject:
|
||||||
const e = E(4)
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue