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
parent 670d63a331
commit 8481e9ff14
2 changed files with 10 additions and 2 deletions

View File

@@ -94,8 +94,9 @@ type
ntyVarargs,
ntyUnused,
ntyError,
ntyBuiltinTypeClass, ntyConcept, ntyConceptInst, ntyComposite,
ntyAnd, ntyOr, ntyNot
ntyBuiltinTypeClass, ntyUserTypeClass, ntyUserTypeClassInst,
ntyCompositeTypeClass, ntyInferred, ntyAnd, ntyOr, ntyNot,
ntyAnything, ntyStatic, ntyFromExpr, ntyFieldAccessor, ntyVoid
TNimTypeKinds* {.deprecated.} = set[NimTypeKind]
NimSymKind* = enum

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()