Files
Nim/nimsuggest/tests/tdef_forward.nim
alaviss c2ba4ef979 suggest: try to find the implementation of a symbol when def is used (#15555)
* suggest: try to find the implementation of a symbol when def is used

* suggest: return all declarations of the symbol on `def`
2020-10-14 17:08:56 +02:00

14 lines
264 B
Nim

discard """
$nimsuggest --tester $file
>def $1
def;;skProc;;tdef_forward.hello;;proc (): string;;$file;;8;;5;;"";;100
def;;skProc;;tdef_forward.hello;;proc (): string;;$file;;12;;5;;"";;100
"""
proc hello(): string
hel#[!]#lo()
proc hello(): string =
"Hello"