Fixed NimTypeKind enum, added missing values. (#6157)
This commit is contained in:
parent
670d63a331
commit
8481e9ff14
2 changed files with 10 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue