Nim/tests/types/tillegaltyperecursion3.nim
Arne Döring 6f7f043c9b Fix type recursion check (#11144)
* fixes #3456
* add test #3456
2019-05-07 08:29:17 +02:00

10 lines
153 B
Nim

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