diff options
author | Zahary Karadjov <zahary@gmail.com> | 2018-06-10 16:44:49 +0300 |
---|---|---|
committer | zah <zahary@gmail.com> | 2018-06-10 22:27:51 +0300 |
commit | 5f2cdcd4fa0f3d5dd0156026c0685aa59d9f7f92 (patch) | |
tree | 8645974aba4e3f33afd86f6a8bdb18cf5dccafde /tests/generics | |
parent | 03653ab61e6eed6811c5df0677a2bf2aa722ef9c (diff) | |
download | Nim-5f2cdcd4fa0f3d5dd0156026c0685aa59d9f7f92.tar.gz |
fix #7653
Diffstat (limited to 'tests/generics')
-rw-r--r-- | tests/generics/t3977.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/generics/t3977.nim b/tests/generics/t3977.nim index 314017744..eed1a7d63 100644 --- a/tests/generics/t3977.nim +++ b/tests/generics/t3977.nim @@ -1,12 +1,14 @@ discard """ - output: '''42''' + output: "42\n42" """ type Foo[N: static[int]] = object proc foo[N](x: Foo[N]) = + let n = N echo N + echo n var f1: Foo[42] f1.foo |