tuple field names are ignored
This commit is contained in:
parent
75b7917b3a
commit
c0cc62c6b1
9 changed files with 29 additions and 40 deletions
|
|
@ -1,5 +1,6 @@
|
|||
discard """
|
||||
output: "61, 125"
|
||||
output: '''61, 125
|
||||
89'''
|
||||
"""
|
||||
|
||||
proc `^` (a, b: int): int =
|
||||
|
|
@ -13,3 +14,6 @@ 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