This commit is contained in:
Andreas Rumpf 2016-07-08 10:52:04 +02:00
commit 857b0c8d4c
2 changed files with 16 additions and 4 deletions

View file

@ -1,5 +1,15 @@
# 4412
# bug #4462
import macros
proc foo(t: typedesc) {.compileTime.} =
echo getType(t).treeRepr
static:
foo(int)
# #4412
proc default[T](t: typedesc[T]): T {.inline.} = discard
static: