From 9455a0c3e324e13a4a49da7ccecc098bfe895a7f Mon Sep 17 00:00:00 2001 From: cooldome Date: Thu, 5 Nov 2020 13:51:45 +0000 Subject: close #11142 (#15847) --- tests/types/tisopr.nim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests') diff --git a/tests/types/tisopr.nim b/tests/types/tisopr.nim index 533cf05be..67f1ce0c1 100644 --- a/tests/types/tisopr.nim +++ b/tests/types/tisopr.nim @@ -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)") + -- cgit 1.4.1-2-gfad0