mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* 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>
8 lines
121 B
Nim
8 lines
121 B
Nim
discard """
|
|
errormsg: "Cannot inherit from: 'Foo:ObjectType'"
|
|
line: 7
|
|
"""
|
|
# bug #1691
|
|
type
|
|
Foo = ref object of Foo
|