summary refs log tree commit diff stats
path: root/tests/accept/compile/toop.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/accept/compile/toop.nim')
-rw-r--r--tests/accept/compile/toop.nim18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/accept/compile/toop.nim b/tests/accept/compile/toop.nim
new file mode 100644
index 000000000..d103c6304
--- /dev/null
+++ b/tests/accept/compile/toop.nim
@@ -0,0 +1,18 @@
+
+type
+  TA = object
+    x, y: int
+  
+  TB = object of TA
+    z: int
+    
+  TC = object of TB
+    whatever: string
+  
+proc p(a: var TA) = nil
+proc p(b: var TB) = nil
+
+var c: TC
+
+p(c)
+