tuple field names are ignored
This commit is contained in:
parent
75b7917b3a
commit
c0cc62c6b1
9 changed files with 29 additions and 40 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue