summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2020-03-22 20:01:01 +0100
committerGitHub <noreply@github.com>2020-03-22 20:01:01 +0100
commit64ffa17f0fac789f259d3db48a28f1605805a366 (patch)
treee4669327bb15994f7543ea831a353b7e3d681f8f /tests
parent474dd981250898e32275c918cbd4b183a18bffd8 (diff)
downloadNim-64ffa17f0fac789f259d3db48a28f1605805a366.tar.gz
fixes #13715 (#13716)
* fixes #13715

* fix test
Diffstat (limited to 'tests')
-rw-r--r--tests/errmsgs/t8434.nim2
-rw-r--r--tests/types/tillegalseqrecursion.nim6
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/errmsgs/t8434.nim b/tests/errmsgs/t8434.nim
index c8bc1193b..5d962ee5c 100644
--- a/tests/errmsgs/t8434.nim
+++ b/tests/errmsgs/t8434.nim
@@ -3,7 +3,7 @@ discard """
   nimout: '''but expected one of:
 proc fun0[T1: int | float | object | array | seq](a1: T1; a2: int)
   first type mismatch at position: 1
-  required type for a1: T1: int or float or object or array or seq[T]
+  required type for a1: T1: int or float or object or array or seq
   but expression 'byte(1)' is of type: byte
 
 expression: fun0(byte(1), 0)
diff --git a/tests/types/tillegalseqrecursion.nim b/tests/types/tillegalseqrecursion.nim
new file mode 100644
index 000000000..9221bb38a
--- /dev/null
+++ b/tests/types/tillegalseqrecursion.nim
@@ -0,0 +1,6 @@
+discard """
+  errormsg: "illegal recursion in type 'CyclicSeq'"
+"""
+# issue #13715
+type
+  CyclicSeq = seq[ref CyclicSeq]