summary refs log tree commit diff stats
path: root/tests/modules/trecmod2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/trecmod2.nim')
-rw-r--r--tests/modules/trecmod2.nim7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/modules/trecmod2.nim b/tests/modules/trecmod2.nim
index 85fe2215f..03c8cf70d 100644
--- a/tests/modules/trecmod2.nim
+++ b/tests/modules/trecmod2.nim
@@ -1,10 +1,13 @@
+discard """
+  output: "4"
+"""
 type
   T1* = int  # Module A exports the type ``T1``
 
 import mrecmod2   # the compiler starts parsing B
-
+# the manual says this should work
 proc main() =
-  var i = p(3) # works because B has been parsed completely here
+  echo p(3) # works because B has been parsed completely here
 
 main()