summary refs log tree commit diff stats
path: root/tests/generics/t3977.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/generics/t3977.nim')
-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