Fix type recursion check (#11144)

* fixes #3456
* add test #3456
This commit is contained in:
Arne Döring 2019-05-07 08:29:17 +02:00 • committed by Andreas Rumpf
commit 6f7f043c9b
2 changed files with 15 additions and 4 deletions

View file

@ -0,0 +1,10 @@
discard """
errormsg: "illegal recursion in type 'Weird'"
"""
# issue #3456
import tables
type
Weird = ref seq[Weird]
var t = newTable[int, Weird]()