Files
Nim/nimsuggest/tests/t20265_2.nim
Jake Leahy 1b132ddaa2 Fix nimsuggest not showing suggestions for imported tuples (#22241)
* Add tests

Also test if exported all tuple fields works. This seems like a hacky solution so will try and dive further to find a better solution

* Always suggest tuple fields if it passes the filter

If the tuple we are accessing is in scope then all the fields will also be in scope

* Update tests so line numbers are correct
2023-07-10 08:34:10 +02:00

9 lines
201 B
Nim

discard """
$nimsuggest --tester $file
>sug $1
sug;;skField;;a;;int;;*module_20265.nim;;2;;2;;"";;100;;None
sug;;skField;;b;;int;;*module_20265.nim;;3;;2;;"";;100;;None
"""
import module_20265
x.#[!]#