This commit is contained in:
cooldome 2020-11-05 13:51:45 +00:00 • committed by GitHub
commit 9455a0c3e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)")