summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-11-23 01:17:13 +0100
committerAraq <rumpf_a@web.de>2017-11-23 01:17:13 +0100
commitdf13b2a89222c24474df454d0336f1f20162bdc7 (patch)
tree36c9197e200a93e376e4b9b9ac2665be9fc6c285 /tests
parenta6226d9452194cc3b8d35a0d38d9f8c89ddf04f5 (diff)
downloadNim-df13b2a89222c24474df454d0336f1f20162bdc7.tar.gz
fixes #6555
Diffstat (limited to 'tests')
-rw-r--r--tests/notnil/tmust_compile.nim13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/notnil/tmust_compile.nim b/tests/notnil/tmust_compile.nim
index c81c3b16b..83c8ff92b 100644
--- a/tests/notnil/tmust_compile.nim
+++ b/tests/notnil/tmust_compile.nim
@@ -23,4 +23,15 @@ var b = Obj() # this doesn't (also doesn't works with additional fields)
 
 var z = Obj2[int]()
 
-echo "success"
\ No newline at end of file
+echo "success"
+
+# bug #6555
+
+import tables
+
+type
+  TaskOrNil = ref object
+  Task = TaskOrNil not nil
+
+let table = newTable[string, Task]()
+table.del("task")