Files
Nim/nimsuggest/tests/module_20265.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

7 lines
84 B
Nim

type A* = tuple
a: int
b: int
var x*: A = (a: 2, b: 10)
var y* = (a: 2, b: 10)