Files
Nim/tests/caas/forward_declarations.nim
2013-06-16 22:39:38 +02:00

16 lines
345 B
Nim

# 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()