revert to old behaviour: tuple field names are not ignored anymore; fixes #1920

This commit is contained in:
Araq 2015-01-18 02:33:28 +01:00
commit abb738146a
9 changed files with 40 additions and 17 deletions

View file

@ -1,6 +1,5 @@
discard """
output: '''61, 125
89'''
output: '''61, 125'''
"""
proc `^` (a, b: int): int =
@ -13,7 +12,3 @@ var n = (56, 3)
m = (n[0] + m[1], m[1] ^ n[1])
echo m[0], ", ", m[1]
var x = (bar: 38)
x = (foo: 89)
echo x[0]

View file

@ -0,0 +1,9 @@
# bug #1920
import tables
var p: OrderedTable[tuple[a:int], int]
var q: OrderedTable[tuple[x:int], int]
for key in p.keys:
echo key.a
for key in q.keys:
echo key.x