summary refs log tree commit diff stats
path: root/tests/accept/compile
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2010-02-24 01:04:39 +0100
committerAndreas Rumpf <rumpf_a@web.de>2010-02-24 01:04:39 +0100
commitf41bd71e6152174c3b0819c7549fa431e8a01222 (patch)
tree35bec88bad6f84e9551316888744037e8d15e598 /tests/accept/compile
parent6da95ed9ca899db702c6a7b17d2d7db14dbb0de4 (diff)
downloadNim-f41bd71e6152174c3b0819c7549fa431e8a01222.tar.gz
SQLite wrapper
Diffstat (limited to 'tests/accept/compile')
-rw-r--r--tests/accept/compile/mrecmod.nim1
-rw-r--r--tests/accept/compile/mrecmod2.nim9
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/accept/compile/mrecmod.nim b/tests/accept/compile/mrecmod.nim
new file mode 100644
index 000000000..fab9654d5
--- /dev/null
+++ b/tests/accept/compile/mrecmod.nim
@@ -0,0 +1 @@
+import trecmod

diff --git a/tests/accept/compile/mrecmod2.nim b/tests/accept/compile/mrecmod2.nim
new file mode 100644
index 000000000..9557ce729
--- /dev/null
+++ b/tests/accept/compile/mrecmod2.nim
@@ -0,0 +1,9 @@
+# Module B
+import trecmod2  
+
+proc p*(x: trecmod2.T1): trecmod2.T1 =
+  # this works because the compiler has already
+  # added T1 to trecmod2's interface symbol table
+  return x + 1
+  
+