tuple field names are ignored

This commit is contained in:
Araq 2014-12-23 17:54:22 +01:00
commit c0cc62c6b1
9 changed files with 29 additions and 40 deletions

View file

@ -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]

View file

@ -1,6 +1,7 @@
discard """
errormsg: "illegal recursion in type 'TNode'"
line: 8
disabled: true
"""
type

View file

@ -1,3 +1,7 @@
discard """
disabled: true
"""
import typetraits
type
@ -35,7 +39,9 @@ proc p(a, b) =
var f: TFoo[m(a.type), b.type]
static:
assert f.x.type.name == "int"
echo f.y.type.name
assert f.y.type.name == "float"
echo f.z.type.name
assert f.z.type.name == "float"
p(A, f)