mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-08 22:47:27 +00:00
* 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
(cherry picked from commit 1b132ddaa2)
7 lines
84 B
Nim
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)
|