summary refs log tree commit diff stats
path: root/tests/generics/t88.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/generics/t88.nim')
-rw-r--r--tests/generics/t88.nim25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/generics/t88.nim b/tests/generics/t88.nim
deleted file mode 100644
index 93d93f063..000000000
--- a/tests/generics/t88.nim
+++ /dev/null
@@ -1,25 +0,0 @@
-# Issue 88
-
-type
-  BaseClass[V] = object of RootObj
-    b: V
-
-proc new[V](t: typedesc[BaseClass], v: V): BaseClass[V] =
-  BaseClass[V](b: v)
-
-proc baseMethod[V](v: BaseClass[V]): V = v.b
-proc overridedMethod[V](v: BaseClass[V]): V = v.baseMethod
-
-type
-  ChildClass[V] = object of BaseClass[V]
-    c: V
-
-proc new[V](t: typedesc[ChildClass], v1, v2: V): ChildClass[V] =
-  ChildClass[V](b: v1, c: v2)
-
-proc overridedMethod[V](v: ChildClass[V]): V = v.c
-
-let c = ChildClass[string].new("Base", "Child")
-
-assert c.baseMethod == "Base"
-assert c.overridedMethod == "Child"