summary refs log blame commit diff stats
path: root/tests/accept/compile/trecmod2.nim
blob: 85fe2215fd3e92059e8966be3a019d72a19fafb7 (plain) (tree)
1
2
3
4
5
6
7
8
9
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()