diff options
author | Zahary Karadjov <zahary@gmail.com> | 2017-06-10 22:34:28 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-06-20 11:29:42 +0200 |
commit | 0149e418bec1b4433ea3d2e03a30735c1b7b16a3 (patch) | |
tree | 24f0a03aa4b89e6211842972071f028c6b8440ef | |
parent | 92ee2ee4ce0958126ba0b22edfebc4aa76fd7f3d (diff) | |
download | Nim-0149e418bec1b4433ea3d2e03a30735c1b7b16a3.tar.gz |
close #3784
-rw-r--r-- | tests/statictypes/t3784.nim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/statictypes/t3784.nim b/tests/statictypes/t3784.nim new file mode 100644 index 000000000..3414d9802 --- /dev/null +++ b/tests/statictypes/t3784.nim @@ -0,0 +1,20 @@ +discard """ +output: "T[1, 1]" +""" + +# https://github.com/nim-lang/Nim/issues/3784 + +import typetraits + +type + S[N: static[int]] = object + T[A,B: static[int]] = object + + C = S[1] + +var + x: T[1,1] + y: T[C.N, C.N] + +echo y.type.name + |