trecmod2.nim 254 B

1234567891011121314
  1. discard """
  2. output: "4"
  3. """
  4. type
  5. T1* = int # Module A exports the type ``T1``
  6. import mrecmod2 # the compiler starts parsing B
  7. # the manual says this should work
  8. proc main() =
  9. echo p(3) # works because B has been parsed completely here
  10. main()