summary refs log tree commit diff stats
path: root/tests/objects/tillegal_recursion.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-11 02:45:29 +0200
committerAraq <rumpf_a@web.de>2015-04-11 10:01:11 +0200
commita1b937ab33dc320208be405672ab12d88c92b4b1 (patch)
treeb46c0cab3bf5ce9ed4efd467434c540447564224 /tests/objects/tillegal_recursion.nim
parentc8dbeaa09b33af6d339213eaffa5dbb2c08cc959 (diff)
downloadNim-a1b937ab33dc320208be405672ab12d88c92b4b1.tar.gz
fixes #1691
Diffstat (limited to 'tests/objects/tillegal_recursion.nim')
-rw-r--r--tests/objects/tillegal_recursion.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/objects/tillegal_recursion.nim b/tests/objects/tillegal_recursion.nim
new file mode 100644
index 000000000..171a04f87
--- /dev/null
+++ b/tests/objects/tillegal_recursion.nim
@@ -0,0 +1,7 @@
+discard """
+  errormsg: "illegal recursion in type 'object'"
+  line: 7
+"""
+# bug #1691
+type
+  Foo = ref object of Foo