forward_declarations.nim 345 B

12345678910111213141516
  1. # This example shows that idetools returns an empty signature for a forward
  2. # declared proc in proc/symproc runs, but correctly returns the full signature
  3. # in caas mode.
  4. proc echoHello(text: string)
  5. proc testForward() =
  6. echo "T"
  7. echoHello("T")
  8. proc echoHello(text: string) =
  9. echo "Hello Mr." & text
  10. when isMainModule:
  11. testForward()