diff options
Diffstat (limited to 'tests/modules/trecmod2.nim')
-rw-r--r-- | tests/modules/trecmod2.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/modules/trecmod2.nim b/tests/modules/trecmod2.nim new file mode 100644 index 000000000..03c8cf70d --- /dev/null +++ b/tests/modules/trecmod2.nim @@ -0,0 +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() = + echo p(3) # works because B has been parsed completely here + +main() + |