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.nim8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/modules/trecmod2.nim b/tests/modules/trecmod2.nim
index aa88f5e91..03c8cf70d 100644
--- a/tests/modules/trecmod2.nim
+++ b/tests/modules/trecmod2.nim
@@ -1,15 +1,13 @@
 discard """
-  file: "mrecmod2.nim"
-  line: 2
-  errormsg: "recursive module dependency detected"
+  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()