summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-12-23 17:54:22 +0100
committerAraq <rumpf_a@web.de>2014-12-23 17:54:22 +0100
commitc0cc62c6b17710e6d961198da79a0587e538735f (patch)
tree6609c01bc33c9bbc0d77e7e6af39ffd2161c1332 /tests
parent75b7917b3aba351c5b93c4a552f2081fb90a7668 (diff)
downloadNim-c0cc62c6b17710e6d961198da79a0587e538735f.tar.gz
tuple field names are ignored
Diffstat (limited to 'tests')
-rw-r--r--tests/tuples/tanontuples.nim6
-rw-r--r--tests/typerel/trectuple.nim1
-rw-r--r--tests/types/tisop.nim6
3 files changed, 12 insertions, 1 deletions
diff --git a/tests/tuples/tanontuples.nim b/tests/tuples/tanontuples.nim
index a2babf038..80bd32b7b 100644
--- a/tests/tuples/tanontuples.nim
+++ b/tests/tuples/tanontuples.nim
@@ -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]
diff --git a/tests/typerel/trectuple.nim b/tests/typerel/trectuple.nim
index ebaaa2ea7..334c4a911 100644
--- a/tests/typerel/trectuple.nim
+++ b/tests/typerel/trectuple.nim
@@ -1,6 +1,7 @@
 discard """
   errormsg: "illegal recursion in type 'TNode'"
   line: 8
+  disabled: true
 """
 
 type
diff --git a/tests/types/tisop.nim b/tests/types/tisop.nim
index 509cc4e95..05c6a1a06 100644
--- a/tests/types/tisop.nim
+++ b/tests/types/tisop.nim
@@ -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)