parent
adde5ba6b0
commit
9455a0c3e3
1 changed files with 14 additions and 0 deletions
|
|
@ -121,3 +121,17 @@ block:
|
||||||
doAssert($s.a & " " & $s.b == "x1 x3")
|
doAssert($s.a & " " & $s.b == "x1 x3")
|
||||||
|
|
||||||
enumGen(x1..x3)
|
enumGen(x1..x3)
|
||||||
|
|
||||||
|
block:
|
||||||
|
# issue #11142
|
||||||
|
type
|
||||||
|
MyObjParam[N: static int] = object
|
||||||
|
x: int
|
||||||
|
|
||||||
|
MyObj[P: static MyObjParam] = object
|
||||||
|
y: int
|
||||||
|
|
||||||
|
const P = MyObjParam[256](x: 2)
|
||||||
|
let Q = MyObj[P](y: 2)
|
||||||
|
doAssert($Q == "(y: 2)")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue