summary refs log tree commit diff stats
path: root/tests/caas/forward_declarations.nim
blob: 177d82f20b99e39ac5feab5860771776033fb5a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This example shows that idetools returns an empty signature for a forward
# declared proc in proc/symproc runs, but correctly returns the full signature
# in caas mode.

proc echoHello(text: string)

proc testForward() =
  echo "T"
  echoHello("T")

proc echoHello(text: string) =
  echo "Hello Mr." & text

when isMainModule:
  testForward()