mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
committed by
Andreas Rumpf
parent
6b2ed28d55
commit
bc0f2f0dd2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user