summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/cpp/torc.nim12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/cpp/torc.nim b/tests/cpp/torc.nim
index 7fc474f94..636105f31 100644
--- a/tests/cpp/torc.nim
+++ b/tests/cpp/torc.nim
@@ -12,4 +12,14 @@ type
 
 proc p(): Option[O] = none(O)
 
-doAssert $p() == "none(O)"
\ No newline at end of file
+doAssert $p() == "none(O)"
+
+# bug #17351
+type
+  Foo = object of RootObj
+  Foo2 = object of Foo
+  Bar = object
+    x: Foo2
+
+var b = Bar()
+discard b