(cherry picked from commit 9455a0c3e3)
This commit is contained in:
cooldome
2020-11-05 13:51:45 +00:00
committed by narimiran
parent ac25f63f82
commit 0ed4c2bc4f

View File

@@ -121,3 +121,17 @@ block:
doAssert($s.a & " " & $s.b == "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)")