summary refs log tree commit diff stats
path: root/tests/stdlib/tstring.nim
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2020-01-07 23:36:57 +0000
committerAndreas Rumpf <rumpf_a@web.de>2020-01-08 00:36:57 +0100
commit871d5e79b1dc54c1657a1d7f85788e8bd8f4fb28 (patch)
tree41353387591564db35c1deb7a9619fcf3a3b80d5 /tests/stdlib/tstring.nim
parent8bcc7e8b9ea39524bac14f6c89de5213509f4099 (diff)
downloadNim-871d5e79b1dc54c1657a1d7f85788e8bd8f4fb28.tar.gz
distinctBase type trait for distinct types (#13031)
Diffstat (limited to 'tests/stdlib/tstring.nim')
-rw-r--r--tests/stdlib/tstring.nim17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/stdlib/tstring.nim b/tests/stdlib/tstring.nim
index 852ff4fb7..36a2e9800 100644
--- a/tests/stdlib/tstring.nim
+++ b/tests/stdlib/tstring.nim
@@ -1,5 +1,7 @@
 discard """
-  output: "OK"
+  output: '''OK
+@[@[], @[], @[], @[], @[]]
+'''
 """
 const characters = "abcdefghijklmnopqrstuvwxyz"
 const numbers = "1234567890"
@@ -76,3 +78,16 @@ proc test_string_cmp() =
 
 test_string_slice()
 test_string_cmp()
+
+
+#--------------------------
+# bug #7816
+import sugar
+import sequtils
+
+proc tester[T](x: T) =
+  let test = toSeq(0..4).map(i => newSeq[int]())
+  echo test
+
+tester(1)
+
href='#n87'>87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115