Fixed vm codegen for a call with compile-time args. Fixes #4412.

This commit is contained in:
Yuriy Glukhov 2016-07-06 14:39:42 +03:00
commit 09783c3fd0
2 changed files with 10 additions and 1 deletions

6
tests/vm/tvmmisc.nim Normal file
View file

@ -0,0 +1,6 @@
# 4412
proc default[T](t: typedesc[T]): T {.inline.} = discard
static:
var x = default(type(0))