diff options
Diffstat (limited to 'tests/accept/compile/mrecmod2.nim')
-rw-r--r-- | tests/accept/compile/mrecmod2.nim | 9 |
1 files changed, 9 insertions, 0 deletions
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 + + |