summary refs log tree commit diff stats
path: root/tests/trecmod2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/trecmod2.nim')
-rw-r--r--tests/trecmod2.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/trecmod2.nim b/tests/trecmod2.nim
new file mode 100644
index 000000000..85fe2215f
--- /dev/null
+++ b/tests/trecmod2.nim
@@ -0,0 +1,10 @@
+type
+  T1* = int  # Module A exports the type ``T1``
+
+import mrecmod2   # the compiler starts parsing B
+
+proc main() =
+  var i = p(3) # works because B has been parsed completely here
+
+main()
+