summary refs log tree commit diff stats
path: root/tests/compile/tdictdestruct.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/tdictdestruct.nim')
-rw-r--r--tests/compile/tdictdestruct.nim20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/compile/tdictdestruct.nim b/tests/compile/tdictdestruct.nim
deleted file mode 100644
index ec1084105..000000000
--- a/tests/compile/tdictdestruct.nim
+++ /dev/null
@@ -1,20 +0,0 @@
-
-type
-  TDict[TK, TV] = object
-    k: TK
-    v: TV
-  PDict[TK, TV] = ref TDict[TK, TV]
-
-proc fakeNew[T](x: var ref T, destroy: proc (a: ref T) {.nimcall.}) =
-  nil
-
-proc destroyDict[TK, TV](a: PDict[TK, TV]) =
-    return
-proc newDict[TK, TV](a: TK, b: TV): PDict[TK, TV] =
-    Fakenew(result, destroyDict[TK, TV])
-
-# Problem: destroyDict is not instantiated when newDict is instantiated!    
-
-discard newDict("a", "b")    
-
-