diff options
author | Araq <rumpf_a@web.de> | 2017-11-23 02:32:51 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-11-23 02:32:51 +0100 |
commit | 8a601669ef6bedd6ab9f70bd09936d24a6a10ade (patch) | |
tree | ce3a2f42e48b0cbae29207ec867b3c82d0e4dee6 /tests | |
parent | 95a5373d07c5761cfffe54dedd08c1649a403247 (diff) | |
download | Nim-8a601669ef6bedd6ab9f70bd09936d24a6a10ade.tar.gz |
fixes #6489
Diffstat (limited to 'tests')
-rw-r--r-- | tests/notnil/tmust_compile.nim | 8 |
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) |