diff options
Diffstat (limited to 'tests/reject/tillrec.nim')
-rw-r--r-- | tests/reject/tillrec.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/reject/tillrec.nim b/tests/reject/tillrec.nim new file mode 100644 index 000000000..21ce19889 --- /dev/null +++ b/tests/reject/tillrec.nim @@ -0,0 +1,10 @@ +# test illegal recursive types + +type + TLegal {.final.} = object + x: int + kids: seq[TLegal] + + TIllegal {.final.} = object #ERROR_MSG illegal recursion in type 'TIllegal' + y: Int + x: array[0..3, TIllegal] |