summary refs log tree commit diff stats
path: root/tests/modules/trecmod2.nim
blob: 03c8cf70d3f2f02482cb0f9e86f0a59b89b1bec2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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()