diff options
author | cooldome <ariabushenko@gmail.com> | 2020-11-05 13:51:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 14:51:45 +0100 |
commit | 9455a0c3e324e13a4a49da7ccecc098bfe895a7f (patch) | |
tree | f58869b0497d958cdafc0a0ff467b8cc982d0ef5 /tests | |
parent | adde5ba6b06e12f74c7746f93883ad009cfb00b8 (diff) | |
download | Nim-9455a0c3e324e13a4a49da7ccecc098bfe895a7f.tar.gz |
close #11142 (#15847)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/types/tisopr.nim | 14 |
1 files changed, 14 insertions, 0 deletions
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)") + |