summary refs log tree commit diff stats
path: root/tests/objects/tinherit_from_generic.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/objects/tinherit_from_generic.nim')
-rw-r--r--tests/objects/tinherit_from_generic.nim13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/objects/tinherit_from_generic.nim b/tests/objects/tinherit_from_generic.nim
deleted file mode 100644
index 6e0e929ce..000000000
--- a/tests/objects/tinherit_from_generic.nim
+++ /dev/null
@@ -1,13 +0,0 @@
-discard """
-  output: '''true'''
-"""
-
-# bug #4673
-type
-  BaseObj[T] = ref object of RootObj
-  SomeObj = ref object of BaseObj[int]
-
-proc doSomething[T](o: BaseObj[T]) =
-  echo "true"
-var o = new(SomeObj)
-o.doSomething() # Error: cannot instantiate: 'T'