From 09783c3fd0cb98c08aa65d27a3fa630cdc99b673 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Wed, 6 Jul 2016 14:39:42 +0300 Subject: Fixed vm codegen for a call with compile-time args. Fixes #4412. --- tests/vm/tvmmisc.nim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/vm/tvmmisc.nim (limited to 'tests/vm/tvmmisc.nim') 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)) -- cgit 1.4.1-2-gfad0