Fixed vm codegen for a call with compile-time args. Fixes #4412.
This commit is contained in:
parent
b681e91745
commit
09783c3fd0
2 changed files with 10 additions and 1 deletions
6
tests/vm/tvmmisc.nim
Normal file
6
tests/vm/tvmmisc.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
# 4412
|
||||
proc default[T](t: typedesc[T]): T {.inline.} = discard
|
||||
|
||||
static:
|
||||
var x = default(type(0))
|
||||
Loading…
Add table
Add a link
Reference in a new issue