diff options
author | alaviss <leorize+oss@disroot.org> | 2020-10-14 10:08:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 17:08:56 +0200 |
commit | c2ba4ef9799a097fec8b2bb1b033448860d60f1b (patch) | |
tree | 62c4a458ad3060a8f6983b04562d29e59f25f25c /nimsuggest/tests | |
parent | 977bccdbff9db889bebfa963d1292c4d433f6779 (diff) | |
download | Nim-c2ba4ef9799a097fec8b2bb1b033448860d60f1b.tar.gz |
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`
Diffstat (limited to 'nimsuggest/tests')
-rw-r--r-- | nimsuggest/tests/tdef_forward.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nimsuggest/tests/tdef_forward.nim b/nimsuggest/tests/tdef_forward.nim new file mode 100644 index 000000000..9bdd8b21d --- /dev/null +++ b/nimsuggest/tests/tdef_forward.nim @@ -0,0 +1,13 @@ +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" |