summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-11-23 02:32:51 +0100
committerAraq <rumpf_a@web.de>2017-11-23 02:32:51 +0100
commit8a601669ef6bedd6ab9f70bd09936d24a6a10ade (patch)
treece3a2f42e48b0cbae29207ec867b3c82d0e4dee6 /tests
parent95a5373d07c5761cfffe54dedd08c1649a403247 (diff)
downloadNim-8a601669ef6bedd6ab9f70bd09936d24a6a10ade.tar.gz
fixes #6489
Diffstat (limited to 'tests')
-rw-r--r--tests/notnil/tmust_compile.nim8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/notnil/tmust_compile.nim b/tests/notnil/tmust_compile.nim
index f4ac3724f..117921a57 100644
--- a/tests/notnil/tmust_compile.nim
+++ b/tests/notnil/tmust_compile.nim
@@ -55,4 +55,10 @@ proc parse(cts: CTS, jn: JsonNode) =
     thing: jn.getStr("thing")
   )
 
-  cts.subs_by_sid[0] = ces
\ No newline at end of file
+  cts.subs_by_sid[0] = ces
+
+
+# bug #6489
+
+proc p(x: proc(){.closure.} not nil) = discard
+p(proc(){.closure.} = discard)