diff options
author | xzfc <xzfc@users.noreply.github.com> | 2018-10-09 19:51:34 +0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-09 14:51:34 +0200 |
commit | 505ae14f4bcb265d9d6b115849c5bb5e36a1fabc (patch) | |
tree | 0eefa6b6f1c911db578e5cc6b939f076e165a1b0 /tests | |
parent | b8d2f79ef094a3b825866a155d795e6c2b4a6c6a (diff) | |
download | Nim-505ae14f4bcb265d9d6b115849c5bb5e36a1fabc.tar.gz |
Codegen fix for procs taking type(nil) (#9231)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ccgbugs/tnil_type.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ccgbugs/tnil_type.nim b/tests/ccgbugs/tnil_type.nim new file mode 100644 index 000000000..44ecf1cc9 --- /dev/null +++ b/tests/ccgbugs/tnil_type.nim @@ -0,0 +1,6 @@ +discard """ + targets: "c cpp" +""" + +proc foo(v: type(nil)) = discard +foo nil |