fixes #1691
This commit is contained in:
parent
c8dbeaa09b
commit
a1b937ab33
3 changed files with 24 additions and 7 deletions
7
tests/objects/tillegal_recursion.nim
Normal file
7
tests/objects/tillegal_recursion.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
errormsg: "illegal recursion in type 'object'"
|
||||
line: 7
|
||||
"""
|
||||
# bug #1691
|
||||
type
|
||||
Foo = ref object of Foo
|
||||
Loading…
Add table
Add a link
Reference in a new issue