Files
Nim/tests/objects/tillegal_recursion.nim
Juan M Gómez d90581c677 Allows for arbitrary ordering of inheritance in type section #6259 (#22070)
* Allows for arbitrary ordering of inheritance in type section #6259

* prevents ilegal recursion

* fixes ilegal recursion. Test passes with a better message

* Apply suggestions from code review

---------

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2023-06-15 09:56:08 +02:00

8 lines
121 B
Nim

discard """
errormsg: "Cannot inherit from: 'Foo:ObjectType'"
line: 7
"""
# bug #1691
type
Foo = ref object of Foo