Fixed NimTypeKind enum, added missing values. (#6157)

This commit is contained in:
Yuriy Glukhov 2017-07-30 12:10:07 +03:00 • committed by Andreas Rumpf
commit 8481e9ff14
2 changed files with 10 additions and 2 deletions

View file

@ -18,3 +18,10 @@ macro testGeneric(T: typedesc[Model]): string=
echo testUser
echo User.testGeneric
macro assertVoid(e: typed): untyped =
assert(getTypeInst(e).typeKind == ntyVoid)
proc voidProc() = discard
assertVoid voidProc()