diff options
author | Yuriy Glukhov <yuriy.glukhov@gmail.com> | 2016-07-06 14:39:42 +0300 |
---|---|---|
committer | Yuriy Glukhov <yuriy.glukhov@gmail.com> | 2016-07-06 14:39:57 +0300 |
commit | 09783c3fd0cb98c08aa65d27a3fa630cdc99b673 (patch) | |
tree | 8cc567f66bc3899700e14836ff2ad3538fae001b /tests/vm/tvmmisc.nim | |
parent | b681e91745a49944e8429b79a1895f850b7e5762 (diff) | |
download | Nim-09783c3fd0cb98c08aa65d27a3fa630cdc99b673.tar.gz |
Fixed vm codegen for a call with compile-time args. Fixes #4412.
Diffstat (limited to 'tests/vm/tvmmisc.nim')
-rw-r--r-- | tests/vm/tvmmisc.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/vm/tvmmisc.nim b/tests/vm/tvmmisc.nim new file mode 100644 index 000000000..e935013c4 --- /dev/null +++ b/tests/vm/tvmmisc.nim @@ -0,0 +1,6 @@ + +# 4412 +proc default[T](t: typedesc[T]): T {.inline.} = discard + +static: + var x = default(type(0)) |