diff options
author | Juan M Gómez <info@jmgomez.me> | 2023-06-16 07:23:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-16 08:23:25 +0200 |
commit | b4d9be0f8ae6c97d581e3d32f502a3c323f18475 (patch) | |
tree | 36a0637d73b6041cbf12eaa1c8218652b56d8cf0 /tests | |
parent | 0a19d78b228a2d2e7b5e2341edf45b5ee669196a (diff) | |
download | Nim-b4d9be0f8ae6c97d581e3d32f502a3c323f18475.tar.gz |
fixes ilegal recursion (#22105)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/objects/tillegal_recursion2.nim | 6 | ||||
-rw-r--r-- | tests/objects/tillegal_recursion3.nim | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/objects/tillegal_recursion2.nim b/tests/objects/tillegal_recursion2.nim new file mode 100644 index 000000000..ce2279f04 --- /dev/null +++ b/tests/objects/tillegal_recursion2.nim @@ -0,0 +1,6 @@ +discard """ + errormsg: "Cannot inherit from: 'Foo'" + line: 6 +""" +type + Foo = object of Foo diff --git a/tests/objects/tillegal_recursion3.nim b/tests/objects/tillegal_recursion3.nim new file mode 100644 index 000000000..c80f29e28 --- /dev/null +++ b/tests/objects/tillegal_recursion3.nim @@ -0,0 +1,6 @@ +discard """ + errormsg: "Cannot inherit from: 'Foo'" + line: 6 +""" +type + Foo = object of ref Foo |