summary refs log tree commit diff stats
path: root/tests/objects
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-02-19 16:22:09 +0100
committerAraq <rumpf_a@web.de>2019-02-19 16:25:57 +0100
commitf31d1fa98b65f497b914f5bbfe1a3827cf791814 (patch)
tree6489918838d43fd930b798b81cbb9e184cadd166 /tests/objects
parent51f516e030c9727f756e4e53558c5e7cb8f93ccd (diff)
downloadNim-f31d1fa98b65f497b914f5bbfe1a3827cf791814.tar.gz
fixes #10195
Diffstat (limited to 'tests/objects')
-rw-r--r--tests/objects/tobject.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/objects/tobject.nim b/tests/objects/tobject.nim
index fbf531c3d..34856eaef 100644
--- a/tests/objects/tobject.nim
+++ b/tests/objects/tobject.nim
@@ -37,3 +37,8 @@ f(m)
 
 var a: TYourObj = m
 var b: TMyObj = a
+
+# bug #10195
+type
+  InheritableFoo {.inheritable.} = ref object
+  InheritableBar = ref object of InheritableFoo # ERROR.