diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-07-08 10:52:04 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-07-08 10:52:04 +0200 |
commit | 857b0c8d4c79d44fc0580df4658d1b17121dceed (patch) | |
tree | 4432240f3f992716af4abb85d17204c2174739f1 /tests | |
parent | b47d9b7b917202ab3b7f1632f8d9462c5f76e869 (diff) | |
download | Nim-857b0c8d4c79d44fc0580df4658d1b17121dceed.tar.gz |
fixes #4462
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vm/tvmmisc.nim | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/vm/tvmmisc.nim b/tests/vm/tvmmisc.nim index e935013c4..b7112b099 100644 --- a/tests/vm/tvmmisc.nim +++ b/tests/vm/tvmmisc.nim @@ -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: |