revert to old behaviour: tuple field names are not ignored anymore; fixes #1920
This commit is contained in:
parent
a2b7e6c392
commit
abb738146a
9 changed files with 40 additions and 17 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue