mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
16 lines
345 B
Nim
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()
|