summary refs log tree commit diff stats
path: root/tests/generics
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2018-06-10 16:44:49 +0300
committerzah <zahary@gmail.com>2018-06-10 22:27:51 +0300
commit5f2cdcd4fa0f3d5dd0156026c0685aa59d9f7f92 (patch)
tree8645974aba4e3f33afd86f6a8bdb18cf5dccafde /tests/generics
parent03653ab61e6eed6811c5df0677a2bf2aa722ef9c (diff)
downloadNim-5f2cdcd4fa0f3d5dd0156026c0685aa59d9f7f92.tar.gz
fix #7653
Diffstat (limited to 'tests/generics')
-rw-r--r--tests/generics/t3977.nim4
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